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>
This commit is contained in:
Berthold Stoeger 2021-06-04 15:15:37 +02:00 committed by Dirk Hohndel
parent b2b24665e7
commit 1ddb55dcad

View file

@ -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: