Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
None
-
Windows
-
df96862ae366c5a3b0af8436fe1c3997a10ee656 (dev, 28.1.2014, 5.3)
Description
When printing with custom PageSizes, my application asserts.
ASSERT failure in QList<T>::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qlist.h, line 472
Digging through the code i found in:
void QWin32PrintEnginePrivate::updateCustomPaperSize() on
qtbase\src\printsupport\kernel\qprintengine_win.cpp:1966
this: paper_size = paperSizes.at(paperSize).first;
shouldn't paperSize be i?
Attached is a patch that seems to fix the issue.
Attachments
Issue Links
- relates to
-
QTBUG-35941 QPrinter returns incorrect QRect
- Reported
- resulted from
-
QTBUG-34276 Setting the paper size for QPrinter to a custom size has no effect on the final printed page size
- Closed