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: