Details
-
Bug
-
Resolution: Done
-
P2: Important
-
3.x
-
None
-
4ca43c71eb4f1b2cb969a219e3f1d3b12af02309
Description
Under some conditions some printer driver returns a null-pointer when retrieving the devMode-pointer. In these cases the app crashes while printing in QWin32PrintEngine::begin(...) when num_copies-value should be set into the devMode.
Additional feed back on this issue:
The problem of nul-DEVMODE's is that Qt retrieve the DEVMODE only from the PRINTER_INFO_2 struct which is not filled correctly especially by some none-microsoft printer drivers. It is suggested to retrieve a valid devmode in an alternative way as decribed in http://www.codeguru.com/forum/showthread.php?t=93941 if
PRINTER_INFO_2's pDevMode points to null.
Attachments
Issue Links
- is required for
-
QTBUG-25384 QtPrintSupport - Windows issues
- Open
For Gerrit Dashboard: QTBUG-2251 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
105782,7 | Improved Windows printer support and fixed crashes due to NULL devMode | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |