]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (display_tool_bar_line): Don't extend on a previously
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 10 Dec 2013 02:32:52 +0000 (06:32 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 10 Dec 2013 02:32:52 +0000 (06:32 +0400)
drawn tool bar items (Bug#16058).

src/ChangeLog
src/xdisp.c

index 520261857df9e695e46076f35df62672fc66ad19..0d61ef48154cc4a873278fc34e9d49a8ce6f2ef1 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-10  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * xdisp.c (display_tool_bar_line): Don't extend on a previously
+       drawn tool bar items (Bug#16058).
+
 2013-12-09  Ken Brown  <kbrown@cornell.edu>
 
        * frame.c (get_frame_param): Make extern if HAVE_NTGUI.
index 530eae3cb9e7b41a58441402acf627dd66656248..6daa9131154c1832f2cd4bd1a65280f9837e295c 100644 (file)
@@ -11937,7 +11937,9 @@ display_tool_bar_line (struct it *it, int height)
   int max_x = it->last_visible_x;
   struct glyph *last;
 
-  prepare_desired_row (row);
+  /* Don't extend on a previously drawn tool bar items (Bug#16058).  */
+  clear_glyph_row (row);
+  row->enabled_p = 1;
   row->y = it->current_y;
 
   /* Note that this isn't made use of if the face hasn't a box,