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:
Miika Turkia 2013-12-28 19:35:00 +02:00 committed by Dirk Hohndel
parent a18ada18e4
commit e72d001d3e

View file

@ -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()