mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
Removed DPI dependency in print font size computation
This commit is contained in:
parent
0a4f8a46d4
commit
abbb823890
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user