From d9fd2085f9c2105187732a2c14fa78c414678d8b Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Sun, 8 Dec 2013 13:19:46 +0100 Subject: [PATCH] Reinitialize the printer after changing the custom paper size Task-number: QTBUG-34276 Change-Id: Ie382c39cb7b7b8307fcd1130702ca97e80e4a4f5 Reviewed-by: John Layt --- src/printsupport/kernel/qprintengine_win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/printsupport/kernel/qprintengine_win.cpp b/src/printsupport/kernel/qprintengine_win.cpp index e2446c19b1..67e7c34fca 100644 --- a/src/printsupport/kernel/qprintengine_win.cpp +++ b/src/printsupport/kernel/qprintengine_win.cpp @@ -1453,6 +1453,7 @@ void QWin32PrintEngine::setProperty(PrintEnginePropertyKey key, const QVariant & d->devMode->dmPaperLength = qRound(sizeMM.height() * 10.0); d->devMode->dmPaperWidth = qRound(sizeMM.width() * 10.0); } + d->doReinit(); break; }