2002-10-16 Jody Goldberg <jody@gnome.org> http://bugzilla.gnome.org/show_bug.cgi?id=95807 From sylvain_pasche@yahoo.fr * main.c (open_pattern) : Add a safety check.
This commit is contained in:
parent
d25787ede2
commit
9266656bea
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-10-16 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
http://bugzilla.gnome.org/show_bug.cgi?id=95807
|
||||
From sylvain_pasche@yahoo.fr
|
||||
* main.c (open_pattern) : Add a safety check.
|
||||
|
||||
2002-10-01 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* Release 2.1.0.1
|
||||
|
|
|
@ -164,6 +164,8 @@ open_pattern (FcPattern *pattern,
|
|||
int screen = gdk_x11_get_default_screen ();
|
||||
|
||||
res_pattern = XftFontMatch (xdisplay, screen, pattern, &result);
|
||||
if (res_pattern == NULL)
|
||||
return NULL;
|
||||
|
||||
FcPatternDel (res_pattern, FC_HINTING);
|
||||
FcPatternAddBool (res_pattern, FC_HINTING, hinting != HINT_NONE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue