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
@ -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…
x
Reference in New Issue
Block a user