]> git.saurik.com Git - wxWidgets.git/commitdiff
setting All Pages if To is 0
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 31 Aug 2005 14:20:41 +0000 (14:20 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 31 Aug 2005 14:20:41 +0000 (14:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/printmac.cpp

index bfccc761a58385483eab41db4a487109df2e8a4a..4c727be9b4c5e28309ad22786b64673f41075783 100644 (file)
@@ -274,7 +274,13 @@ void wxMacCarbonPrintData::TransferFrom( wxPrintDialogData* data )
 
     int toPage = data->GetToPage();
     if (toPage < 1)
-        toPage = data->GetFromPage();
+    {
+       PMSetLastPage( m_macPrintSettings , kPMPrintAllPages, true ) ;
+       }
+       else
+       {
+       PMSetLastPage( m_macPrintSettings , toPage , false ) ;
+       }
     PMSetLastPage( m_macPrintSettings , toPage , false ) ;
 }