X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6f1ad222c5c1597a896dd29e69e1c7aa6459be4..31528cd3cac75558beef4bce0ba21fd182a808ab:/src/generic/dcpsg.cpp diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 3a0608b9e9..8fb105fc8f 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1460,9 +1460,9 @@ void wxPostScriptDC::EndDoc () m_pstream = fopen( wxConvFile.cWX2MB(header_file) , "w+" ); fprintf( m_pstream, "%%!PS-Adobe-2.0\n" ); // PostScript magic strings - fprintf( m_pstream, "%%%%Title: %s\n", m_title.mb_str() ); - fprintf( m_pstream, "%%%%Creator: %s\n", wxTheApp->argv[0] ); - fprintf( m_pstream, "%%%%CreationDate: %s\n", wxNow().mb_str() ); + fprintf( m_pstream, "%%%%Title: %s\n", (const char *)m_title.mb_str() ); + fprintf( m_pstream, "%%%%Creator: %s\n", (const char*)wxConvLibc.cWX2MB(wxTheApp->argv[0]) ); + fprintf( m_pstream, "%%%%CreationDate: %s\n", (const char *)wxNow().mb_str() ); wxChar userID[256]; if ( wxGetEmailAddress(userID, sizeof(userID)) )