From 0c75b29e1ed19810546de38b646b5b901be873e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 21 Sep 2008 08:49:08 +0000 Subject: [PATCH] progress message passed to wxDC::StartDoc() is not appropriate for PostScript document title git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/dcpsg.h | 1 - src/generic/dcpsg.cpp | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index 3bba53d93c..bb66e50ce1 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -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; diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index d35e0ab584..119340cad2 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -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() ); -- 2.45.2