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:
Jody Goldberg 2002-10-16 13:11:04 +00:00 committed by Jody Goldberg
parent d25787ede2
commit 9266656bea
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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);