mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
2d77788cb2
commit
76a8e83a54
5 changed files with 30 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue