[PATCH] Fix bookmark/gaschange setting for Ubuntu

Miika Turkia miika.turkia at gmail.com
Sat Dec 28 09:35:00 UTC 2013


On Ubuntu, new events have time zero. This is fixed by resetting
gc.rightx to maxtime at the end of plot function.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 qt-ui/profilegraphics.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index d9755bf..a1d6adf 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -495,6 +495,8 @@ void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw)
 
 	if (rulerEnabled && !printMode)
 		add_ruler();
+
+	gc.rightx = get_maxtime(&gc.pi);
 }
 
 void ProfileGraphicsView::plot_depth_scale()
-- 
1.8.3.2



More information about the subsurface mailing list