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:
parent
0841a5e367
commit
df96862ae3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user