From: Stefan Csomor Date: Wed, 31 Aug 2005 14:20:41 +0000 (+0000) Subject: setting All Pages if To is 0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/35d1986eb8ca2e3737b5d8543b27a4230e1a5534 setting All Pages if To is 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index bfccc761a5..4c727be9b4 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -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 ) ; }