* editoptions.c (edit_options_dialog): Don't allow

option_tab_spacing to be 0.  Reset invalid values to 8.
Reported by Ury N. Stankevich <ury@bofh.homeunix.org>
This commit is contained in:
Pavel Roskin 2002-10-17 05:43:57 +00:00
parent f0aab2028b
commit 2b5fec4594
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-10-17 Pavel Roskin <proski@gnu.org>
* editoptions.c (edit_options_dialog): Don't allow
option_tab_spacing to be 0. Reset invalid values to 8.
Reported by Ury N. Stankevich <ury@bofh.homeunix.org>
2002-10-08 Pavel Roskin <proski@gnu.org>
* wordproc.c (format_paragraph): If formatting was successful,

View File

@ -163,8 +163,8 @@ void edit_options_dialog (void)
}
if (q) {
option_tab_spacing = atoi (q);
if (option_tab_spacing < 0)
option_tab_spacing = 2;
if (option_tab_spacing <= 0)
option_tab_spacing = 8;
free (q);
}
option_syntax_highlighting = *quick_widgets[5 + OA].result;