aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/xterm.c b/src/xterm.c
index a7f739f7ca9..f839e222a47 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1368,7 +1368,7 @@ x_draw_composite_glyph_string_foreground (s)
1368 1368
1369 /* If first glyph of S has a left box line, start drawing the text 1369 /* If first glyph of S has a left box line, start drawing the text
1370 of S to the right of that box line. */ 1370 of S to the right of that box line. */
1371 if (s->face->box != FACE_NO_BOX 1371 if (s->face && s->face->box != FACE_NO_BOX
1372 && s->first_glyph->left_box_line_p) 1372 && s->first_glyph->left_box_line_p)
1373 x = s->x + abs (s->face->box_line_width); 1373 x = s->x + abs (s->face->box_line_width);
1374 else 1374 else
@@ -1390,17 +1390,18 @@ x_draw_composite_glyph_string_foreground (s)
1390 else 1390 else
1391 { 1391 {
1392 for (i = 0; i < s->nchars; i++, ++s->gidx) 1392 for (i = 0; i < s->nchars; i++, ++s->gidx)
1393 { 1393 if (s->face)
1394 XDrawString16 (s->display, s->window, s->gc, 1394 {
1395 x + s->cmp->offsets[s->gidx * 2],
1396 s->ybase - s->cmp->offsets[s->gidx * 2 + 1],
1397 s->char2b + i, 1);
1398 if (s->face->overstrike)
1399 XDrawString16 (s->display, s->window, s->gc, 1395 XDrawString16 (s->display, s->window, s->gc,
1400 x + s->cmp->offsets[s->gidx * 2] + 1, 1396 x + s->cmp->offsets[s->gidx * 2],
1401 s->ybase - s->cmp->offsets[s->gidx * 2 + 1], 1397 s->ybase - s->cmp->offsets[s->gidx * 2 + 1],
1402 s->char2b + i, 1); 1398 s->char2b + i, 1);
1403 } 1399 if (s->face->overstrike)
1400 XDrawString16 (s->display, s->window, s->gc,
1401 x + s->cmp->offsets[s->gidx * 2] + 1,
1402 s->ybase - s->cmp->offsets[s->gidx * 2 + 1],
1403 s->char2b + i, 1);
1404 }
1404 } 1405 }
1405} 1406}
1406 1407