]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontutil.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / unix / fontutil.cpp
index 07ee3233f2800d7cf9a248fed6b6ddbdf8026f91..883fbd7febe48f6586d1217288da2fc585f45c1d 100644 (file)
@@ -989,9 +989,9 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
 {
     wxString fontspec;
     fontspec.Printf(wxT("-*-%s-*-*-*-*-*-*-*-*-*-*-%s-%s"),
 {
     wxString fontspec;
     fontspec.Printf(wxT("-*-%s-*-*-*-*-*-*-*-*-*-*-%s-%s"),
-                    !info.facename ? wxT("*") : info.facename.c_str(),
-                    info.xregistry.c_str(),
-                    info.xencoding.c_str());
+                    info.facename.empty() ? wxString("*") : info.facename,
+                    info.xregistry,
+                    info.xencoding);
 
     return wxTestFontSpec(fontspec);
 }
 
     return wxTestFontSpec(fontspec);
 }