forked from firka/flutter
am e1a0422a: Fix for Minikin native crash
* commit 'e1a0422aae785f6ed213ba0bb0139edc30502d7a': Fix for Minikin native crash
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user