diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2009-04-22 13:57:06 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2009-04-22 14:00:29 (GMT) |
commit | f8be94bf4e8fa359bfc71a10aa7dc6b12daf5dea (patch) | |
tree | 48eac4f05e32261f3dce1c02d56a7ab6a430a5b2 /src/gui/painting | |
parent | 1187d1b2063b42378d9cd1a940bcd7eecb24fb69 (diff) | |
download | Qt-f8be94bf4e8fa359bfc71a10aa7dc6b12daf5dea.zip Qt-f8be94bf4e8fa359bfc71a10aa7dc6b12daf5dea.tar.gz Qt-f8be94bf4e8fa359bfc71a10aa7dc6b12daf5dea.tar.bz2 |
Fix QPrinter::pageRect() for Windows printers, when fullPage() is set.
When QPrinter::fullPage() was set, pageRect() returned the same as
paperRect(). Under Windows, there is always a non-printable area that
was not taken into account in the fullPage() case.
Task-number: 248881
Reviewed-by: Kim
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qprintengine_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qprintengine_win.cpp b/src/gui/painting/qprintengine_win.cpp index c8674b7..7601beb 100644 --- a/src/gui/painting/qprintengine_win.cpp +++ b/src/gui/painting/qprintengine_win.cpp @@ -1532,7 +1532,7 @@ QVariant QWin32PrintEngine::property(PrintEnginePropertyKey key) const value = rect; } else { value = QTransform(1/d->stretch_x, 0, 0, 1/d->stretch_y, 0, 0) - .mapRect(d->fullPage ? d->devPaperRect : d->devPageRect); + .mapRect(d->fullPage ? d->devPhysicalPageRect : d->devPageRect); } break; |