1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Removed DPI dependency in print font size computation

This commit is contained in:
Martin Tůma 2017-08-31 00:07:29 +02:00
parent 0a4f8a46d4
commit abbb823890

View File

@ -1008,7 +1008,8 @@ void GUI::plot(QPrinter *printer)
if (tm > 0 && _options.printMovingTime) if (tm > 0 && _options.printMovingTime)
info.insert(tr("Moving time"), Format::timeSpan(tm)); info.insert(tr("Moving time"), Format::timeSpan(tm));
qreal fsr = 96.0 / (qMax(printer->width(), printer->height()) / 3392.0); qreal fsr = 1085.0 / (qMax(printer->width(), printer->height())
/ (qreal)printer->resolution());
ratio = p.paintEngine()->paintDevice()->logicalDpiX() / fsr; ratio = p.paintEngine()->paintDevice()->logicalDpiX() / fsr;
if (info.isEmpty()) { if (info.isEmpty()) {
ih = 0; ih = 0;