From e72d001d3e80ed8964abf76355ed90dbf2488d9f Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 28 Dec 2013 19:35:00 +0200 Subject: [PATCH] Fix bookmark/gaschange setting for Ubuntu 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 Signed-off-by: Dirk Hohndel --- qt-ui/profilegraphics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index d9755bff2..a1d6adf55 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()