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
This commit is contained in:
parent
aef06ee169
commit
0c75b29e1e
@ -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;
|
||||
|
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user