diff options
author | Jody Goldberg <jody@gnome.org> | 2003-10-28 20:38:11 +0000 |
---|---|---|
committer | Jody Goldberg <jody@src.gnome.org> | 2003-10-28 20:38:11 +0000 |
commit | f916e2f01ca1b1b30288b35264733786df67430b (patch) | |
tree | 34b4f801a8a43426051a7466d217e35c44272a28 | |
parent | de50972bb26991cbcb595ec068a355b4d557c978 (diff) | |
download | gnome-control-center-f916e2f01ca1b1b30288b35264733786df67430b.tar.gz |
http://bugzilla.gnome.org/show_bug.cgi?id=106489 add some protection again
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.
-rw-r--r-- | capplets/font/ChangeLog | 6 | ||||
-rw-r--r-- | capplets/font/main.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/capplets/font/ChangeLog b/capplets/font/ChangeLog index 252f3c4a8..e3ca13b7e 100644 --- a/capplets/font/ChangeLog +++ b/capplets/font/ChangeLog @@ -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 diff --git a/capplets/font/main.c b/capplets/font/main.c index bf3341e75..0d447811b 100644 --- a/capplets/font/main.c +++ b/capplets/font/main.c @@ -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; |