From 64691f1398152413f91ebe6906806eb9eb8801b1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 21 Feb 2006 10:12:02 +0000 Subject: Change g_critical to g_warning. We already handle them gracefully. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-02-21 Behdad Esfahbod * pango/fonts.c, pango/glyphstring.c, pango/pango-fontmap.c, pango/pango-ot-buffer.c, pango/pangocairo-font.c, pango/pangoft2.c, pango/pangoxft-font.c, pango/shape.c: Change g_critical to g_warning. We already handle them gracefully. Bug 331994 – --disable-debug removes G_DISABLE_CAST_CHECKS Patch from charlet@act-europe.fr * configure.in: Do not lose PANGO_DEBUG_FLAGS when reassigning. Bug 331995 – pango_layout_set_text optimization Patch from charlet@act-europe.fr * pango/pango-layout.c: Do not validate input text if asserts are disabled. Moreover, do not truncate input text on invalid sequence. Bug 331996 – avoid crashes in win32 font handling Patch from charlet@act-europe.fr * pango/pangofc-fontmap.c, pango/pangowin32-fontmap.c, pango/pangowin32.c: if (!font) return NULL in a number of places. --- pango/pango-fontmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pango/pango-fontmap.c') diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c index 2d97a16b..409da2f9 100644 --- a/pango/pango-fontmap.c +++ b/pango/pango-fontmap.c @@ -236,10 +236,11 @@ pango_font_map_real_load_fontset (PangoFontMap *fontmap, pango_font_description_free (tmp_desc); - /* Everything failed, we are screwed, there is no way to continue + /* Everything failed, we are screwed, there is no way to continue, + * but lets just not crash here. */ if (pango_fontset_simple_size (fonts) == 0) - g_critical ("All font fallbacks failed!!!!"); + g_warning ("All font fallbacks failed!!!!"); return PANGO_FONTSET (fonts); } -- cgit v1.2.1