summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
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()