summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.cpp
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2023-11-27 19:03:40 +0200
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2023-12-09 04:46:24 +0200
commite28a664ae12e22a2cecbd669d3d8562c742eb4a2 (patch)
tree4cec07fd8fe92dd0d513b285a4cb3f71cc0b4700 /src/corelib/io/qdebug.cpp
parentc49fd15a4253a79d70ae2b26ac4cc04454ffd7a0 (diff)
pagelayout: Fix inaccuracy in marginsPixels and paintRectPixels
Do not use rounded value for conversion, which gives inaccurate result. Example case: typical margin for A4 paper size is 8.4 pt. At 600 dpi, the old code was using rounded point value of 8, which produces an incorrect result: 8 / (72.0 / 600) = 67 pixels The correct margin is of course: 8.4 / (72.0 / 600) = 70 pixels Pick-to: 6.6 Change-Id: I44b2eeabb82fd3bf8e2dcfcba66ae96cde763875 Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
0 files changed, 0 insertions, 0 deletions