From 35d1986eb8ca2e3737b5d8543b27a4230e1a5534 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 31 Aug 2005 14:20:41 +0000 Subject: [PATCH] setting All Pages if To is 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/printmac.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ) ; } -- 2.50.0