summaryrefslogtreecommitdiff
path: root/pango/pango-renderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-renderer.c')
-rw-r--r--pango/pango-renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index f575707f..21d09573 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -284,7 +284,7 @@ draw_strikethrough (PangoRenderer *renderer,
PangoRectangle *rect = &state->strikethrough_rect;
int num_glyphs = state->strikethrough_glyphs;
- if (state->strikethrough)
+ if (state->strikethrough && num_glyphs > 0)
pango_renderer_draw_rectangle (renderer,
PANGO_RENDER_PART_STRIKETHROUGH,
rect->x,