diff options
-rw-r--r-- | pango/pango-layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 92d858b2..7d5b9b10 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3609,6 +3609,9 @@ find_hyphen_width (PangoItem *item) hb_font_t *hb_font; hb_codepoint_t glyph; + if (!item->analysis.font) + return 0; + /* This is not technically correct, since * a) we may end up inserting a different hyphen * b) we should reshape the entire run |