[pango: 13/16] Red Hat Bug 490331 - Crash of galeon in libpango
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [pango: 13/16] Red Hat Bug 490331 - Crash of galeon in libpango
- Date: Sun, 15 Mar 2009 15:39:27 -0400 (EDT)
commit 9644e56231280151803e0bdbee7141507a6b899f
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun Mar 15 13:08:36 2009 -0400
Red Hat Bug 490331 - Crash of galeon in libpango
Don't crash when no fonts installed.
---
pango/pangofc-fontmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index ee8183b..6ef9001 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -778,7 +778,7 @@ pango_fc_patterns_get_font_pattern (PangoFcPatterns *pats, int i)
}
}
- if (i < pats->fontset->nfont)
+ if (pats->fontset && i < pats->fontset->nfont)
return pats->fontset->fonts[i];
else
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]