changeset 33099:006a1f5b5f43

(redisplay_tool_bar): Don't set fonts_changed_p if window height hasn't changed.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 31 Oct 2000 12:51:08 +0000
parents 4c21e73877c1
children ad497bf7b9ff
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Oct 31 12:42:51 2000 +0000
+++ b/src/xdisp.c	Tue Oct 31 12:51:08 2000 +0000
@@ -7273,6 +7273,7 @@
 	{
 	  extern Lisp_Object Qtool_bar_lines;
 	  Lisp_Object frame;
+	  int old_height = XFASTINT (w->height);
 	  
 	  XSETFRAME (frame, f);
 	  clear_glyph_matrix (w->desired_matrix);
@@ -7280,7 +7281,8 @@
 				    Fcons (Fcons (Qtool_bar_lines,
 						  make_number (nlines)),
 					   Qnil));
-	  fonts_changed_p = 1;
+	  if (XFASTINT (w->height) != old_height)
+	    fonts_changed_p = 1;
 	}
     }