From 8334be51fb56033719518ce7380f6aeff181de0e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 26 Feb 2012 17:18:34 +0000 Subject: [PATCH] Retrieve paper size from page setup dialog in wxOSX/Cocoa. Call PMGetPageFormatPaper() when retrieving data from the native dialog. Closes #14047. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/core/printmac.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/core/printmac.cpp b/src/osx/core/printmac.cpp index ca27326..9921186 100644 --- a/src/osx/core/printmac.cpp +++ b/src/osx/core/printmac.cpp @@ -348,6 +348,8 @@ void wxOSXPrintData::TransferPrinterNameTo( wxPrintData &data ) void wxOSXPrintData::TransferPaperInfoTo( wxPrintData &data ) { + PMGetPageFormatPaper(m_macPageFormat, &m_macPaper); + PMPrinter printer ; PMSessionGetCurrentPrinter( m_macPrintSession, &printer ); OSStatus err = noErr ; -- 2.7.4