Allow an app to call SetFont on a PS DC without assertion

(should be possible to use SetFont before StartDoc).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-03-03 13:32:24 +00:00
parent 21956470c7
commit 29402f455b

View File

@ -1011,6 +1011,10 @@ void wxPostScriptDC::SetFont( const wxFont& font )
}
}
// We may legitimately call SetFont before BeginDoc
if (!m_pstream)
return;
PsPrint( name );
PsPrint( " reencodeISO def\n" );
PsPrint( name );