Better robustness when backends encounter a Unicode character not
[sgt/halibut] / bk_whlp.c
index 9655b1f..7738c71 100644 (file)
--- a/bk_whlp.c
+++ b/bk_whlp.c
@@ -628,7 +628,7 @@ static void whlp_mkparagraph(struct bk_whlp_state *state,
            whlp_set_font(state->h, newfont);
        }
        if (removeattr(text->type) == word_Normal) {
-           if (whlp_convert(text->text, 0, &c, TRUE))
+           if (whlp_convert(text->text, 0, &c, TRUE) || !text->alt)
                whlp_text(state->h, c);
            else
                whlp_mkparagraph(state, deffont, text->alt, FALSE);