diff options
Diffstat (limited to 'profile-widget/divecartesianaxis.cpp')
-rw-r--r-- | profile-widget/divecartesianaxis.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index f40e1c3e5..0336ed129 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -4,9 +4,13 @@ #include "preferences/preferencesdialog.h" #include "diveplotdatamodel.h" #include "animationfunctions.h" +#ifndef SUBSURFACE_MOBILE #include "mainwindow.h" +#endif #include "divelineitem.h" #include "profilewidget2.h" +#include <QDebug> +#include <QGraphicsWidget> QPen DiveCartesianAxis::gridPen() { @@ -144,7 +148,11 @@ void emptyList(QList<T *> &list, double steps) void DiveCartesianAxis::updateTicks(color_indice_t color) { +#ifndef SUBSURFACE_MOBILE if (!scene() || (!changed && !MainWindow::instance()->graphics()->getPrintMode())) +#else + if (!scene() || !changed) +#endif return; QLineF m = line(); // unused so far: |