]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dcpsg.cpp
More updates to the Debian packaging for wxPython, unicode and
[wxWidgets.git] / src / generic / dcpsg.cpp
index ed4bf8e189706d79f894bb6e5f9fd8bbdb70646d..d7477c3892cf87cfead4e526ec599956ea62518f 100644 (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 );