aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c12
2 files changed, 13 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0f61c91c790..cbb14a58622 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xfns.c (Fx_show_tip): Call try_window in a loop until
4 fonts_changed_p is zero (Bug#2423).
5
12010-04-08 Eli Zaretskii <eliz@gnu.org> 62010-04-08 Eli Zaretskii <eliz@gnu.org>
2 7
3 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond 8 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
diff --git a/src/xfns.c b/src/xfns.c
index 647526cc22b..b70f20fe644 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5225,10 +5225,14 @@ Text larger than the specified size is clipped. */)
5225 old_buffer = current_buffer; 5225 old_buffer = current_buffer;
5226 set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer)); 5226 set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer));
5227 current_buffer->truncate_lines = Qnil; 5227 current_buffer->truncate_lines = Qnil;
5228 clear_glyph_matrix (w->desired_matrix); 5228
5229 clear_glyph_matrix (w->current_matrix); 5229 do {
5230 SET_TEXT_POS (pos, BEGV, BEGV_BYTE); 5230 fonts_changed_p = 0;
5231 try_window (FRAME_ROOT_WINDOW (f), pos, 0); 5231 clear_glyph_matrix (w->desired_matrix);
5232 clear_glyph_matrix (w->current_matrix);
5233 SET_TEXT_POS (pos, BEGV, BEGV_BYTE);
5234 try_window (FRAME_ROOT_WINDOW (f), pos, 0);
5235 } while (fonts_changed_p);
5232 5236
5233 /* Compute width and height of the tooltip. */ 5237 /* Compute width and height of the tooltip. */
5234 width = height = 0; 5238 width = height = 0;