summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:09:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:12:29 -0700
commit76a8e83a541febe9b94ec84d3fd8320c86999265 (patch)
treeaa64d0b6de2e28c73026653479cab60f0b6f3d10 /qt-ui/profile/divecartesianaxis.cpp
parent2d77788cb2fe293b72cff7f51a200d90c928dcea (diff)
downloadsubsurface-76a8e83a541febe9b94ec84d3fd8320c86999265.tar.gz
Printing: scale fonts when printing
This seem to work better, but it misses a couple of items at times (for example the highest label on some of the axis). Needs lots more testing. See #590 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.cpp')
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp
index 4c4f15bb2..0d1d5357d 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -5,6 +5,7 @@
#include "preferences.h"
#include "diveplotdatamodel.h"
#include "animationfunctions.h"
+#include "mainwindow.h"
#include <QPen>
#include <QGraphicsScene>
#include <QDebug>
@@ -132,7 +133,7 @@ void emptyList(QList<T *> &list, double steps)
void DiveCartesianAxis::updateTicks(color_indice_t color)
{
- if (!scene() || !changed)
+ if (!scene() || (!changed && !MainWindow::instance()->graphics()->getPrintMode()))
return;
QLineF m = line();
// unused so far: