summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-12-28 19:35:00 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-28 10:25:18 -0800
commite72d001d3e80ed8964abf76355ed90dbf2488d9f (patch)
tree8502e68bec85ef42732986bd86cb7c0324c8ef5a /qt-ui/profilegraphics.cpp
parenta18ada18e4b0be4704b0387303327aaf661e8b57 (diff)
downloadsubsurface-e72d001d3e80ed8964abf76355ed90dbf2488d9f.tar.gz
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 <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp2
1 files changed, 2 insertions, 0 deletions
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()