]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textmeasure.cpp
Don't build tex2rtf and HelpGen utils in non-GUI buildbot builds.
[wxWidgets.git] / src / gtk / textmeasure.cpp
index eafd06848d132d9c7aedea70543768f5a164ea94..87bc7c90d5b0e6310d85c927fb22d5c4c82126d5 100644 (file)
@@ -126,7 +126,7 @@ void wxTextMeasure::DoGetTextExtent(const wxString& string,
 
     // Set layout's text
     const wxCharBuffer dataUTF8 = wxGTK_CONV_FONT(string, GetFont());
-    if ( !dataUTF8 )
+    if ( !dataUTF8 && !string.empty() )
     {
         // hardly ideal, but what else can we do if conversion failed?
         wxLogLastError(wxT("GetTextExtent"));