more GTK2+ANSI fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1473,6 +1473,8 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
|
|||||||
const wxCharBuffer data = wxConvUTF8.cWC2MB( text );
|
const wxCharBuffer data = wxConvUTF8.cWC2MB( text );
|
||||||
#else
|
#else
|
||||||
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( text );
|
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( text );
|
||||||
|
if ( !wdata )
|
||||||
|
return;
|
||||||
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
||||||
#endif
|
#endif
|
||||||
size_t datalen = strlen((const char*)data);
|
size_t datalen = strlen((const char*)data);
|
||||||
@@ -1714,7 +1716,11 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
|
|||||||
#else
|
#else
|
||||||
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( string );
|
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( string );
|
||||||
if ( !wdata )
|
if ( !wdata )
|
||||||
|
{
|
||||||
|
if (width) (*width) = 0;
|
||||||
|
if (height) (*height) = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
||||||
const char *dataUTF8 = (const char *)data;
|
const char *dataUTF8 = (const char *)data;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1473,6 +1473,8 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
|
|||||||
const wxCharBuffer data = wxConvUTF8.cWC2MB( text );
|
const wxCharBuffer data = wxConvUTF8.cWC2MB( text );
|
||||||
#else
|
#else
|
||||||
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( text );
|
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( text );
|
||||||
|
if ( !wdata )
|
||||||
|
return;
|
||||||
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
||||||
#endif
|
#endif
|
||||||
size_t datalen = strlen((const char*)data);
|
size_t datalen = strlen((const char*)data);
|
||||||
@@ -1714,7 +1716,11 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
|
|||||||
#else
|
#else
|
||||||
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( string );
|
const wxWCharBuffer wdata = wxConvLocal.cMB2WC( string );
|
||||||
if ( !wdata )
|
if ( !wdata )
|
||||||
|
{
|
||||||
|
if (width) (*width) = 0;
|
||||||
|
if (height) (*height) = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
const wxCharBuffer data = wxConvUTF8.cWC2MB( wdata );
|
||||||
const char *dataUTF8 = (const char *)data;
|
const char *dataUTF8 = (const char *)data;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user