summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pango/shape.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pango/shape.c b/pango/shape.c
index 02f0f059..afb1e1a3 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -102,10 +102,12 @@ pango_hb_font_get_nominal_glyph (hb_font_t *font,
* don't draw a hex box for 0x20
*/
if (unicode == 0x20)
- *glyph = PANGO_GET_UNKNOWN_GLYPH (0x2423);
+ unicode = 0x2423;
else
- *glyph = PANGO_GET_UNKNOWN_GLYPH (unicode);
- return TRUE;
+ {
+ *glyph = PANGO_GET_UNKNOWN_GLYPH (unicode);
+ return TRUE;
+ }
}
if ((context->show_flags & PANGO_SHOW_IGNORABLES) != 0 &&