]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_fonts.cpp
m_font may not have been set yet. Default to letting GetTextExtent
[wxWidgets.git] / src / html / m_fonts.cpp
index f9637a2d50011fbd4692f6d9fe7dff8c3d3ba0e3..7fd9c8c06b0687b3767cd3c72de0e776c2d0a3e3 100644 (file)
@@ -75,7 +75,9 @@ TAG_HANDLER_BEGIN(FONT, "FONT" )
             {
                 wxFontEnumerator enu;
                 enu.EnumerateFacenames();
-                m_Faces = *enu.GetFacenames();
+                const wxArrayString *faces = enu.GetFacenames();
+                if ( faces )
+                    m_Faces = *faces;
             }
             wxStringTokenizer tk(tag.GetParam(wxT("FACE")), wxT(","));
             int index;