X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..976f924083419b6a7feb1ff7d597c746a70abf1a:/src/html/m_fonts.cpp diff --git a/src/html/m_fonts.cpp b/src/html/m_fonts.cpp index f9637a2d50..1a0aefdd18 100644 --- a/src/html/m_fonts.cpp +++ b/src/html/m_fonts.cpp @@ -4,7 +4,7 @@ // Author: Vaclav Slavik // RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik -// Licence: wxWindows Licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) @@ -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;