summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-06-04 15:15:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-06-04 08:45:32 -0700
commit1ddb55dcad5ee91d4612941eb2eeda9415971b0f (patch)
treec91bf44003e22d088bbef28ac00e968ee66a0bc5 /profile-widget
parentb2b24665e7a838cd471fe657cf847571158bd03f (diff)
downloadsubsurface-1ddb55dcad5ee91d4612941eb2eeda9415971b0f.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/divecartesianaxis.cpp2
1 files changed, 1 insertions, 1 deletions
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<T *> &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: