#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/dcmemory.h"
+ #include "wx/dcprint.h"
+ #include "wx/region.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
-#include "wx/dcprint.h"
-#include "wx/region.h"
#include "wx/image.h"
#ifdef __MSL__
#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 )