X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..67193066b2d16ca36529216f70d093690d7e1123:/src/mac/classic/printmac.cpp diff --git a/src/mac/classic/printmac.cpp b/src/mac/classic/printmac.cpp index f179f5e7f6..bb70bd50e8 100644 --- a/src/mac/classic/printmac.cpp +++ b/src/mac/classic/printmac.cpp @@ -21,6 +21,7 @@ #include "wx/dc.h" #include "wx/app.h" #include "wx/msgdlg.h" + #include "wx/dcprint.h" #endif #include "wx/mac/uma.h" @@ -31,7 +32,6 @@ #define mm2pt 2.83464566929 #define pt2mm 0.352777777778 -#include "wx/dcprint.h" #include "wx/printdlg.h" #include @@ -135,7 +135,7 @@ void wxMacCarbonPrintData::TransferFrom( wxPrintData* data ) kPMLandscape : kPMPortrait , false ) ; // collate cannot be set #if 0 // not yet tested - if ( m_printerName.Length() > 0 ) + if ( !m_printerName.empty() ) PMSessionSetCurrentPrinter( (PMPrintSession) m_macPrintSession , wxMacCFStringHolder( m_printerName , wxFont::GetDefaultEncoding() ) ) ; #endif PMColorMode color ;