}
}
+ // We may legitimately call SetFont before BeginDoc
+ if (!m_pstream)
+ return;
+
PsPrint( name );
PsPrint( " reencodeISO def\n" );
PsPrint( name );
{
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(""))
{