mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Shows the correct color for the CylinderPressure
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
		
							parent
							
								
									7f9fbd2295
								
							
						
					
					
						commit
						17c6db6a5b
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -116,6 +116,7 @@ extern int evn_used; | |||
| 
 | ||||
| ProfileGraphicsView::ProfileGraphicsView(QWidget* parent) : QGraphicsView(parent) | ||||
| { | ||||
| 	gc.printer = false; | ||||
| 	setScene(new QGraphicsScene()); | ||||
| 	setBackgroundBrush(QColor("#F3F3E6")); | ||||
| 	scene()->setSceneRect(0,0,1000,1000); | ||||
|  | @ -330,8 +331,7 @@ void ProfileGraphicsView::plot_cylinder_pressure(struct dive *dive, struct divec | |||
| 			} | ||||
| 		} | ||||
| 
 | ||||
| 		// QColor c = get_sac_color(sac, dive->sac); Buggy TODO: fix.
 | ||||
| 		QColor c = QColor(Qt::darkGreen); | ||||
| 		QColor c = get_sac_color(sac, dive->sac); | ||||
| 
 | ||||
| 		if (lift_pen) { | ||||
| 			if (!first_plot && entry->cylinderindex == last_index) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue