From: Vadim Zeitlin Date: Sun, 26 Feb 2012 17:18:34 +0000 (+0000) Subject: Retrieve paper size from page setup dialog in wxOSX/Cocoa. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8334be51fb56033719518ce7380f6aeff181de0e?ds=inline 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 --- diff --git a/src/osx/core/printmac.cpp b/src/osx/core/printmac.cpp index ca27326027..992118663f 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 ;