X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29402f455b8c556acefcaa88fa6fc03d219156d4..efd17a1d4fa08bf549023a1cc74ce98f9db91be3:/src/generic/dcpsg.cpp diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index d7477c3892..c8e91af7ac 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1182,6 +1182,9 @@ void wxPostScriptDC::SetBrush( const wxBrush& brush ) #include "wx/x11/private.h" #endif +#include +#include FT_FREETYPE_H + #include "wx/fontutil.h" #include #include @@ -1779,7 +1782,7 @@ bool wxPostScriptDC::StartDoc( const wxString& message ) { wxCHECK_MSG( m_ok, FALSE, wxT("invalid postscript dc") ); - if ( m_printData.GetPrintMode() == wxPRINT_MODE_FILE ) + if ( m_printData.GetPrintMode() != wxPRINT_MODE_STREAM ) { if (m_printData.GetFilename() == wxT("")) {