#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) ;
- curwidth = ::TextWidth( text , 0 , strlen(text) ) ;
+ if ( text.data() != NULL )
+ curwidth = ::TextWidth( text , 0 , strlen(text) ) ;
+ else
+ curwidth = 0 ;
}
if ( curwidth > *width )