diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-12-28 19:35:00 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-28 10:25:18 -0800 |
commit | e72d001d3e80ed8964abf76355ed90dbf2488d9f (patch) | |
tree | 8502e68bec85ef42732986bd86cb7c0324c8ef5a | |
parent | a18ada18e4b0be4704b0387303327aaf661e8b57 (diff) | |
download | subsurface-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>
-rw-r--r-- | qt-ui/profilegraphics.cpp | 2 |
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() |