git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39885
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
{
wxCharBuffer text = linetext.mb_str(wxConvLocal) ;
#endif
{
wxCharBuffer text = linetext.mb_str(wxConvLocal) ;
- ::DrawText( text , 0 , strlen(text) ) ;
+ if ( text.data() != NULL )
+ ::DrawText( text , 0 , strlen(text) ) ;
else
{
wxCharBuffer text = linetext.mb_str(wxConvLocal) ;
else
{
wxCharBuffer text = linetext.mb_str(wxConvLocal) ;
- curwidth = ::TextWidth( text , 0 , strlen(text) ) ;
+ if ( text.data() != NULL )
+ curwidth = ::TextWidth( text , 0 , strlen(text) ) ;
+ else
+ curwidth = 0 ;
}
if ( curwidth > *width )
}
if ( curwidth > *width )