From 58b158871ce5f7189cba8d171efcf9a4d1ad1c72 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 23 Jul 2006 13:14:38 +0200 Subject: [PATCH] Decode the second char of double glyph. Still problems with a splitted char --- src/document/html/renderer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c index 4f2a67a5..20310b27 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -509,11 +509,11 @@ good_char: x++; part->spaces[x] = 0; part->char_width[x] = 0; + data = utf_8_to_unicode(&chars, end); } if (data == UCS_NO_CHAR) { - chars++; - part->char_width[x] = 0; - x++; + /* this is at the end only */ + return x - x2; } } len = x - x2;