qprintengine_win.cpp: Fix assert when printing with custom page sizes.

Task-number: QTBUG-36348

Change-Id: I57c8905e007ccd9cf558af03f19f2969009b32c2
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: John Layt <jlayt@kde.org>
This commit is contained in:
Friedemann Kleint 2014-01-28 11:43:00 +01:00 committed by The Qt Project
parent 0841a5e367
commit df96862ae3

View File

@ -1951,7 +1951,7 @@ void QWin32PrintEnginePrivate::updateCustomPaperSize()
const QList<QPair<QSizeF, int> > paperSizes = printerPaperSizes(name);
for (int i=0; i<paperSizes.size(); i++) {
if ((uint)paperSizes.at(i).second == paperSize) {
paper_size = paperSizes.at(paperSize).first;
paper_size = paperSizes.at(i).first;
has_custom_paper_size = false;
break;
}