setting All Pages if To is 0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2005-08-31 14:20:41 +00:00
parent e426ff2972
commit 35d1986eb8

View 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 ) ;
}