mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
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>
This commit is contained in:
parent
a18ada18e4
commit
e72d001d3e
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue