am e1a0422a: Fix for Minikin native crash

* commit 'e1a0422aae785f6ed213ba0bb0139edc30502d7a':
  Fix for Minikin native crash
This commit is contained in:
Raph Levien
2014-05-29 21:27:39 +00:00
committed by Android Git Automerger

View File

@@ -661,7 +661,7 @@ void Layout::doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t
ctx->paint.font->GetBounds(&glyphBounds, glyph_ix, ctx->paint);
glyphBounds.offset(x + xoff, y + yoff);
mBounds.join(glyphBounds);
size_t cluster = info[i].cluster;
size_t cluster = info[i].cluster - start;
mAdvances[cluster] += xAdvance;
x += xAdvance;
}