]> git.saurik.com Git - wxWidgets.git/commitdiff
Retrieve paper size from page setup dialog in wxOSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Feb 2012 17:18:34 +0000 (17:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Feb 2012 17:18:34 +0000 (17:18 +0000)
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

index ca27326027b047916d1443f317b8cef55541d487..992118663f1233040f2877642b1ff7d16c098f8c 100644 (file)
@@ -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 ;