X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..b63b07a809f9a3d22596d4971ef5c8971153823a:/src/html/m_fonts.cpp diff --git a/src/html/m_fonts.cpp b/src/html/m_fonts.cpp index 977949dab9..7fd9c8c06b 100644 --- a/src/html/m_fonts.cpp +++ b/src/html/m_fonts.cpp @@ -7,7 +7,7 @@ // Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation #endif @@ -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;