aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xfns.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 157ff6db673..c7ea82af2a8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -9,7 +9,8 @@
9 TRY_WINDOW_CHECK_MARGINS. 9 TRY_WINDOW_CHECK_MARGINS.
10 10
11 * xfns.c (Fx_show_tip): Undo last change. Call try_window with 11 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
12 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). 12 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
13 width only when it is for padding.
13 14
142010-04-09 Jan Djärv <jan.h.d@swipnet.se> 152010-04-09 Jan Djärv <jan.h.d@swipnet.se>
15 16
diff --git a/src/xfns.c b/src/xfns.c
index 52d6b7bd00f..e02174e55fa 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5245,15 +5245,15 @@ Text larger than the specified size is clipped. */)
5245 /* Let the row go over the full width of the frame. */ 5245 /* Let the row go over the full width of the frame. */
5246 row->full_width_p = 1; 5246 row->full_width_p = 1;
5247 5247
5248 row_width = row->pixel_width;
5248 /* There's a glyph at the end of rows that is used to place 5249 /* There's a glyph at the end of rows that is used to place
5249 the cursor there. Don't include the width of this glyph. */ 5250 the cursor there. Don't include the width of this glyph. */
5250 if (row->used[TEXT_AREA]) 5251 if (row->used[TEXT_AREA])
5251 { 5252 {
5252 last = &row->glyphs[TEXT_AREA][row->used[TEXT_AREA] - 1]; 5253 last = &row->glyphs[TEXT_AREA][row->used[TEXT_AREA] - 1];
5253 row_width = row->pixel_width - last->pixel_width; 5254 if (INTEGERP (last->object))
5255 row_width -= last->pixel_width;
5254 } 5256 }
5255 else
5256 row_width = row->pixel_width;
5257 5257
5258 height += row->height; 5258 height += row->height;
5259 width = max (width, row_width); 5259 width = max (width, row_width);