From 4b16bfef4ab081d2297d40d13084ba469eb9f603 Mon Sep 17 00:00:00 2001 From: Piers Cornwell Date: Tue, 30 Mar 2004 22:14:35 +0000 Subject: Don't allow a font size less than 1. 2004-03-30 Piers Cornwell * data/glade/prefs-dialog.glade: * embed/mozilla/mozilla-notifiers.cpp: (mozilla_font_size_notifier): Don't allow a font size less than 1. --- embed/mozilla/mozilla-notifiers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embed/mozilla') diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp index 4372219a4..83c38b5e8 100644 --- a/embed/mozilla/mozilla-notifiers.cpp +++ b/embed/mozilla/mozilla-notifiers.cpp @@ -268,7 +268,7 @@ mozilla_font_size_notifier (GConfClient *client, sprintf (key, "font.%s", pref); - mozilla_prefs_set_int (key, eel_gconf_get_integer (entry->key)); + mozilla_prefs_set_int (key, MAX (eel_gconf_get_integer (entry->key), 1)); } static void -- cgit v1.2.3