mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
b2b24665e7
commit
1ddb55dcad
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue