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
This commit is contained in:
Vadim Zeitlin 2012-02-26 17:18:34 +00:00
parent 880da677a4
commit 8334be51fb

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