]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 3 Mar 2005 19:15:38 +0000 (19:15 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 3 Mar 2005 19:15:38 +0000 (19:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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)