Merge "Fix for 7281523 android.text.cts.SelectionTest#testMoveRight failures" into jb-mr1-dev

This commit is contained in:
Raph Levien
2012-10-05 10:53:46 -07:00
committed by Android (Google) Code Review

View File

@@ -629,7 +629,7 @@ public:
jint count, jint flags, jint offset, jint opt) {
jfloat scalarArray[count];
TextLayout::getTextRunAdvances(paint, text, start, count, count, flags,
TextLayout::getTextRunAdvances(paint, text, start, count, start + count, flags,
scalarArray, NULL /* dont need totalAdvance */);
jint pos = offset - start;