ANSI mode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1241,7 +1241,7 @@ void wxPostScriptDC::DoDrawText( const wxString& text, wxCoord x, wxCoord y )
|
||||
wxCHECK_RET( m_ok, wxT("invalid postscript dc") );
|
||||
|
||||
const wxWX2MBbuf textbuf = text.mb_str();
|
||||
if (textbuf.data() == NULL)
|
||||
if ( !textbuf )
|
||||
return;
|
||||
|
||||
if (m_textForegroundColour.Ok())
|
||||
@@ -2011,7 +2011,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
const wxWX2MBbuf strbuf = string.mb_str();
|
||||
|
||||
// conversion failed (non e.g. ISO characters)
|
||||
if (strbuf.data() == NULL)
|
||||
if ( !strbuf )
|
||||
return;
|
||||
|
||||
#if !wxUSE_AFM_FOR_POSTSCRIPT
|
||||
|
Reference in New Issue
Block a user