From 1ddb55dcad5ee91d4612941eb2eeda9415971b0f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 4 Jun 2021 15:15:37 +0200 Subject: profile: use printMode flag directly in DiveCartesianAxis The axis has a print-mode flag. There is no point in querying the widget. Signed-off-by: Berthold Stoeger --- profile-widget/divecartesianaxis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget') diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index a959c4307..c414e5da1 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -132,7 +132,7 @@ void emptyList(QList &list, int steps, int speed) void DiveCartesianAxis::updateTicks(color_index_t color) { - if (!scene() || (!changed && !profileWidget->getPrintMode())) + if (!scene() || (!changed && !printMode)) return; QLineF m = line(); // unused so far: -- cgit v1.2.3-70-g09d2