Applied patch [ 1345297 ] Crash with MSW wxPrintDialog when pressed OK.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
780d7317ed
commit
89a3f5c91f
@ -202,7 +202,8 @@ bool wxWindowsPrintNativeData::TransferTo( wxPrintData &data )
|
||||
|
||||
//// Printer name
|
||||
if (devMode->dmDeviceName[0] != 0)
|
||||
data.SetPrinterName( devMode->dmDeviceName );
|
||||
// This syntax fixes a crash when using VS 7.1
|
||||
data.SetPrinterName( wxString(devMode->dmDeviceName, CCHDEVICENAME) );
|
||||
|
||||
//// Colour
|
||||
if (devMode->dmFields & DM_COLOR)
|
||||
|
Loading…
Reference in New Issue
Block a user