]> git.saurik.com Git - wxWidgets.git/commitdiff
We need a file when printing to the printer too.
authorRobin Dunn <robin@alldunn.com>
Wed, 10 Mar 2004 01:18:15 +0000 (01:18 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 10 Mar 2004 01:18:15 +0000 (01:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dcpsg.cpp

index d7477c3892cf87cfead4e526ec599956ea62518f..0cfafaaabc6b3425ddfe58fc444ddd907eec05f3 100644 (file)
@@ -1779,7 +1779,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(""))
         {