Set log clusters to be glyph->string and not the other way around. Doesn't make sense...
authorTom 'TAsn' Hacohen <tom.hacohen@partner.samsung.com>
Tue, 18 Jan 2011 07:00:04 +0000 (16:00 +0900)
committerTom 'TAsn' Hacohen <tom.hacohen@partner.samsung.com>
Tue, 18 Jan 2011 07:00:04 +0000 (16:00 +0900)
src/harfbuzz-indic.c

index ea9195a..b89866a 100755 (executable)
@@ -1842,13 +1842,11 @@ HB_Bool HB_IndicShape(HB_ShaperItem *item)
         IDEBUG("syllable:");
         hb_uint32 g;
         for (g = first_glyph; g < first_glyph + syllable.num_glyphs; ++g)
+          {
             IDEBUG("        %d -> glyph %x", g, item->glyphs[g]);
-        IDEBUG("    logclusters:");
-        int i;
-        for (i = sstart; i < send; ++i) {
-            IDEBUG("        %d -> glyph %d", i, first_glyph);
-            logClusters[i-item->item.pos] = first_glyph;
-        }
+            IDEBUG("          -> cluster %d", syllable.item.pos);
+            logClusters[g] = syllable.item.pos;
+          }
         sstart = send;
         first_glyph += syllable.num_glyphs;
     }