diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2009-04-22 15:57:06 +0200 |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2009-04-22 16:00:29 +0200 |
commit | f8be94bf4e8fa359bfc71a10aa7dc6b12daf5dea (patch) | |
tree | 48eac4f05e32261f3dce1c02d56a7ab6a430a5b2 /src/gui/painting/qprintengine_win.cpp | |
parent | 1187d1b2063b42378d9cd1a940bcd7eecb24fb69 (diff) | |
download | qt4-tools-f8be94bf4e8fa359bfc71a10aa7dc6b12daf5dea.tar.gz |
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/qprintengine_win.cpp')
-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 c8674b7c56..7601bebb08 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; |