[HarfBuzz] harfbuzz: Branch 'master'

Simon Hausmann hausmann at kemper.freedesktop.org
Wed Jan 21 02:10:31 PST 2009


 src/harfbuzz-thai.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f785dc233a9132947fa4ff56a35fb21efa7a6474
Author: Simon Hausmann <simon.hausmann at nokia.com>
Date:   Wed Jan 21 11:09:42 2009 +0100

    Fix array indexing in thai character attribute calcuation.
    
    Take the "from" offset into account for the attributes array.

diff --git a/src/harfbuzz-thai.c b/src/harfbuzz-thai.c
index ca55c20..6279e15 100644
--- a/src/harfbuzz-thai.c
+++ b/src/harfbuzz-thai.c
@@ -82,6 +82,7 @@ static void thaiWordBreaks(const HB_UChar16 *string, hb_uint32 len, HB_CharAttri
 void HB_ThaiAttributes(HB_Script script, const HB_UChar16 *text, hb_uint32 from, hb_uint32 len, HB_CharAttributes *attributes)
 {
     assert(script == HB_Script_Thai);
+    attributes += from;
     thaiWordBreaks(text + from, len, attributes);
 }
 



More information about the HarfBuzz mailing list