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>
This commit is contained in:
Dirk Hohndel 2014-07-09 13:09:52 -07:00
parent 2d77788cb2
commit 76a8e83a54
5 changed files with 30 additions and 4 deletions

View file

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