]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontutil.cpp
fixed status bar positioning to work both with and without sizers (patch 1199639...
[wxWidgets.git] / src / unix / fontutil.cpp
index bcabccd4b026ceb8c9f509e54147bca9741fde12..13f155a6d2a80a1b10d6825795c7b3d78da7dbf7 100644 (file)
@@ -149,7 +149,7 @@ wxFontFamily wxNativeFontInfo::GetFamily() const
     else
     {
         PangoFontFamily **families;
-        PangoFontFamily  *family;
+        PangoFontFamily  *family = NULL;
         int n_families;
         pango_context_list_families(
 #ifdef __WXGTK20__
@@ -175,7 +175,7 @@ wxFontFamily wxNativeFontInfo::GetFamily() const
         //BCI: Cache the wxFontFamily inside the class. Validate cache with
         //BCI: g_ascii_strcasecmp(pango_font_description_get_family(description), pango_font_family_get_name(family)) == 0
 
-        if (pango_font_family_is_monospace( family ))
+        if (family != NULL && pango_font_family_is_monospace( family ))
             ret = wxFONTFAMILY_TELETYPE; // is deemed a monospace font by pango
     }
 #endif // pango_font_family_is_monospace