mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix loading a dive via command line.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
		
							parent
							
								
									3024b2b83c
								
							
						
					
					
						commit
						2f35c94026
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -202,8 +202,14 @@ static void plot_set_scale(scale_mode_t scale) | |||
| 
 | ||||
| void ProfileGraphicsView::showEvent(QShowEvent* event) | ||||
| { | ||||
| 	if (dive) | ||||
| 		plot(dive); | ||||
| 	// Program just opened,
 | ||||
| 	// but the dive was not ploted.
 | ||||
| 	// force a replot by modifying the dive
 | ||||
| 	// hold by the view, and issuing a plot.
 | ||||
| 	if (dive){ | ||||
| 		dive = 0; | ||||
| 		plot(get_dive(selected_dive)); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| void ProfileGraphicsView::clear() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue