From 3179a891d609ce5be3f25fda7696e33446159e61 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 28 Mar 2009 14:12:31 +0000 Subject: Fix actual_x svn path=/trunk/netsurf/; revision=6968 --- amiga/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'amiga/font.c') diff --git a/amiga/font.c b/amiga/font.c index 7d1da082b..a94bf5cb7 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -139,7 +139,6 @@ bool nsfont_position_in_string(const struct css_style *style, OT_GlyphMap8Bit,&glyph, TAG_END) == 0) { - *actual_x = tx; if(utf8_from_enc(utf16,"UTF-16",4,&utf8) != UTF8_CONVERT_OK) return; utf8len = utf8_char_byte_length(utf8); free(utf8); @@ -154,6 +153,7 @@ bool nsfont_position_in_string(const struct css_style *style, } tx+= glyph->glm_X1; + *actual_x = tx; EReleaseInfo(&ofont->olf_EEngine, OT_GlyphMap8Bit,glyph, @@ -166,6 +166,7 @@ bool nsfont_position_in_string(const struct css_style *style, utf16 += 2; } *char_offset = co; + if(co == 0) *actual_x = 0; free(outf16); } -- cgit v1.2.3