Skip to content

Commit 9dc11eb

Browse files
raphlinusAndroid (Google) Code Review
authored andcommitted
Merge "Fix for 7281523 android.text.cts.SelectionTest#testMoveRight failures" into jb-mr1-dev
2 parents 04b0963 + 577b071 commit 9dc11eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android/graphics/Paint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ class SkPaintGlue {
629629
jint count, jint flags, jint offset, jint opt) {
630630
jfloat scalarArray[count];
631631

632-
TextLayout::getTextRunAdvances(paint, text, start, count, count, flags,
632+
TextLayout::getTextRunAdvances(paint, text, start, count, start + count, flags,
633633
scalarArray, NULL /* dont need totalAdvance */);
634634

635635
jint pos = offset - start;

0 commit comments

Comments
 (0)