From e1ec26745c5d302aa3c796c7828edf46a5da9bc3 Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Fri, 18 Apr 2003 13:59:37 +0000 Subject: [PATCH] Fix crash when replying to messages in mail/news. No bug and not part of the default build. (Is it possible that no one was using EnumerateAllFonts before?) --- gfx/src/gtk/nsFontMetricsXft.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/src/gtk/nsFontMetricsXft.cpp b/gfx/src/gtk/nsFontMetricsXft.cpp index 80a00b1c2a6..de96b24a074 100644 --- a/gfx/src/gtk/nsFontMetricsXft.cpp +++ b/gfx/src/gtk/nsFontMetricsXft.cpp @@ -1787,7 +1787,8 @@ EnumFontsXft(nsIAtom* aLangGroup, const char* aGeneric, goto end; // take the pattern and add the lang group to it - AddLangGroup(pat, aLangGroup); + if (aLangGroup) + AddLangGroup(pat, aLangGroup); // get the font list fs = FcFontList(0, pat, os);