]> git.saurik.com Git - wxWidgets.git/commitdiff
progress message passed to wxDC::StartDoc() is not appropriate for PostScript documen...
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 21 Sep 2008 08:49:08 +0000 (08:49 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 21 Sep 2008 08:49:08 +0000 (08:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/dcpsg.h
src/generic/dcpsg.cpp

index 3bba53d93cfb64a01e331c86d19c68c72494ad52..bb66e50ce15d7e885f8d66d0ee6a716506c581dd 100644 (file)
@@ -131,7 +131,6 @@ protected:
     void DoGetSizeMM(int *width, int *height) const;
 
     FILE*             m_pstream;    // PostScript output stream
-    wxString          m_title;
     unsigned char     m_currentRed;
     unsigned char     m_currentGreen;
     unsigned char     m_currentBlue;
index d35e0ab584ec5200f5453b23bb38489e115bf1d6..119340cad29479d44e796803ca988481b023b199 100644 (file)
@@ -1700,7 +1700,7 @@ wxSize wxPostScriptDCImpl::GetPPI(void) const
 }
 
 
-bool wxPostScriptDCImpl::StartDoc( const wxString& message )
+bool wxPostScriptDCImpl::StartDoc( const wxString& WXUNUSED(message) )
 {
     wxCHECK_MSG( m_ok, false, wxT("invalid postscript dc") );
 
@@ -1723,14 +1723,11 @@ bool wxPostScriptDCImpl::StartDoc( const wxString& message )
     }
 
     m_ok = true;
-    m_title = message;
 
     wxString buffer;
 
     PsPrint( "%!PS-Adobe-2.0\n" );
 
-    buffer.Printf( "%%%%Title: %s\n", m_title );
-    PsPrint( buffer );
     PsPrint( "%%Creator: wxWidgets PostScript renderer\n" );
 
     buffer.Printf( "%%%%CreationDate: %s\n", wxNow() );