2003-10-23  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=106489
	* main.c (dpi_load) : add some protection again invalid dpi in the
	  case of gconf failure.
This commit is contained in:
Jody Goldberg 2003-10-28 20:38:11 +00:00 committed by Jody Goldberg
parent de50972bb2
commit f916e2f01c
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-10-23 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=106489
* main.c (dpi_load) : add some protection again invalid dpi in the
case of gconf failure.
2003-08-01 Dennis Cranston <dennis_cranston at yahoo com>
* font-properties.glade: Patch to fix spacing between action

View file

@ -734,6 +734,9 @@ dpi_load (GConfClient *client,
{
gdouble dpi = gconf_client_get_float (client, FONT_DPI_KEY, NULL);
if (dpi < 50.)
dpi = 50.;
in_change = TRUE;
gtk_spin_button_set_value (spinner, dpi);
in_change = FALSE;