aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 0d0bc91efd9..bac74e2a34f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -25956,9 +25956,7 @@ produce_stretch_glyph (struct it *it)
25956 zero_width_ok_p = true; 25956 zero_width_ok_p = true;
25957 width = (int)tem; 25957 width = (int)tem;
25958 } 25958 }
25959#ifdef HAVE_WINDOW_SYSTEM 25959 else if (prop = Fplist_get (plist, QCrelative_width), NUMVAL (prop) > 0)
25960 else if (FRAME_WINDOW_P (it->f)
25961 && (prop = Fplist_get (plist, QCrelative_width), NUMVAL (prop) > 0))
25962 { 25960 {
25963 /* Relative width `:relative-width FACTOR' specified and valid. 25961 /* Relative width `:relative-width FACTOR' specified and valid.
25964 Compute the width of the characters having the `glyph' 25962 Compute the width of the characters having the `glyph'
@@ -25978,10 +25976,9 @@ produce_stretch_glyph (struct it *it)
25978 25976
25979 it2.glyph_row = NULL; 25977 it2.glyph_row = NULL;
25980 it2.what = IT_CHARACTER; 25978 it2.what = IT_CHARACTER;
25981 x_produce_glyphs (&it2); 25979 PRODUCE_GLYPHS (&it2);
25982 width = NUMVAL (prop) * it2.pixel_width; 25980 width = NUMVAL (prop) * it2.pixel_width;
25983 } 25981 }
25984#endif /* HAVE_WINDOW_SYSTEM */
25985 else if ((prop = Fplist_get (plist, QCalign_to), !NILP (prop)) 25982 else if ((prop = Fplist_get (plist, QCalign_to), !NILP (prop))
25986 && calc_pixel_width_or_height (&tem, it, prop, font, true, 25983 && calc_pixel_width_or_height (&tem, it, prop, font, true,
25987 &align_to)) 25984 &align_to))