diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-06-04 15:15:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-06-04 08:45:32 -0700 |
commit | 1ddb55dcad5ee91d4612941eb2eeda9415971b0f (patch) | |
tree | c91bf44003e22d088bbef28ac00e968ee66a0bc5 /profile-widget/divecartesianaxis.cpp | |
parent | b2b24665e7a838cd471fe657cf847571158bd03f (diff) | |
download | subsurface-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/divecartesianaxis.cpp')
-rw-r--r-- | profile-widget/divecartesianaxis.cpp | 2 |
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: |