If we call "font_apply()", we don't need to call

"redraw_hex_dump_all()".

svn path=/trunk/; revision=9815
This commit is contained in:
Guy Harris 2004-01-23 20:13:23 +00:00
parent 32e5a4bdbc
commit 52faded8d8
1 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,7 @@
/* gui_prefs.c
* Dialog box for GUI preferences
*
* $Id: gui_prefs.c,v 1.58 2004/01/23 01:10:24 ulfl Exp $
* $Id: gui_prefs.c,v 1.59 2004/01/23 20:13:23 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -457,14 +457,16 @@ void
gui_prefs_apply(GtkWidget *w _U_)
{
if (font_changed) {
font_apply();
if (font_changed) {
/* This redraws the hex dump windows. */
font_apply();
} else {
/* Redraw the hex dump windows, in case the
highlight style changed.
XXX - do it only if the highlight style *did* change. */
redraw_hex_dump_all();
}
/* Redraw the hex dump windows, in case the
highlight style changed. */
redraw_hex_dump_all();
/* Redraw the help window(s). */
supported_redraw();
help_redraw();