]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/printdlg.cpp
continue with generating EVT_CONTEXT_MENU if EVT_TREE_ITEM_MENU not handled
[wxWidgets.git] / src / msw / printdlg.cpp
index abe7e64ad4927453650ce4c904af8848b8443b5c..6a8457f3c37144c3ccd6ad3d0d04808e4808a7eb 100644 (file)
@@ -474,11 +474,11 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data )
         }
         devMode->dmPrintQuality = quality;
         devMode->dmFields |= DM_PRINTQUALITY;
-        
+
         if (data.GetPrivDataLen() > 0)
         {
             memcpy( (char *)devMode+devMode->dmSize, data.GetPrivData(), data.GetPrivDataLen() );
-            devMode->dmDriverExtra = data.GetPrivDataLen();
+            devMode->dmDriverExtra = (WXWORD)data.GetPrivDataLen();
         }
 
         if (data.GetBin() != wxPRINTBIN_DEFAULT)