summaryrefslogtreecommitdiffstats
path: root/src/printsupport
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-12-08 13:19:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-08 20:25:48 +0100
commitd9fd2085f9c2105187732a2c14fa78c414678d8b (patch)
treeb16f218a4717d59b4a6f5a54013ee77d6d732cd6 /src/printsupport
parent1698369924e5f14769fc4b107697626660d9ddf4 (diff)
Reinitialize the printer after changing the custom paper size
Task-number: QTBUG-34276 Change-Id: Ie382c39cb7b7b8307fcd1130702ca97e80e4a4f5 Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/printsupport')
-rw-r--r--src/printsupport/kernel/qprintengine_win.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}