diff options
| author | 2012-10-05 10:53:46 -0700 | |
|---|---|---|
| committer | 2012-10-05 10:53:46 -0700 | |
| commit | 9dc11eb848bfcd463e504133e4e356c7e6497842 (patch) | |
| tree | 43667778f0c49d4d01dc664709cdabad49c68048 | |
| parent | 04b0963669ed6e55b8a779288ba8d4f8b92bc98f (diff) | |
| parent | 577b07197b1bf1b3903e0bc0f3d48fabfd927b2a (diff) | |
Merge "Fix for 7281523 android.text.cts.SelectionTest#testMoveRight failures" into jb-mr1-dev
| -rw-r--r-- | core/jni/android/graphics/Paint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/Paint.cpp b/core/jni/android/graphics/Paint.cpp index 1f70c669df63..150caf3c5a95 100644 --- a/core/jni/android/graphics/Paint.cpp +++ b/core/jni/android/graphics/Paint.cpp @@ -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; |