[gimp/metadata-browser] do not crash on fonts with 000 permissions.
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] do not crash on fonts with 000 permissions.
- Date: Thu, 13 Sep 2012 00:22:35 +0000 (UTC)
commit cf0130b5a6bd7c3fbbf2a66ff793ce24e6d86232
Author: Simon Budig <simon budig de>
Date: Wed Jun 6 01:15:19 2012 +0200
do not crash on fonts with 000 permissions.
app/text/gimpfont.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/text/gimpfont.c b/app/text/gimpfont.c
index 8bd40ec..ccd443b 100644
--- a/app/text/gimpfont.c
+++ b/app/text/gimpfont.c
@@ -638,6 +638,7 @@ gimp_font_get_sample_string (PangoContext *context,
g_return_val_if_fail (PANGO_IS_FC_FONT (font), "Aa");
face = pango_fc_font_lock_face (PANGO_FC_FONT (font));
+ g_return_val_if_fail (face != NULL, "Aa");
ot_info = pango_ot_info_get (face);
/* First check what script(s), if any, the font has GSUB or GPOS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]