diff options
author | Gilles Debunne <debunne@google.com> | 2011-01-28 10:58:53 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-28 10:58:53 -0800 |
commit | e1df07fc5a88da0242a6ade054423ec464c5318f (patch) | |
tree | 186f2e72e2a8832062a5ced63c9a66224d37c0ed /graphics | |
parent | 3c0f91b0e1312287a271ba890d52cdb8bb75e52d (diff) | |
parent | 1feba8bb02d26225f6ab013d50889a4d2e0c56f3 (diff) | |
download | frameworks_base-e1df07fc5a88da0242a6ade054423ec464c5318f.zip frameworks_base-e1df07fc5a88da0242a6ade054423ec464c5318f.tar.gz frameworks_base-e1df07fc5a88da0242a6ade054423ec464c5318f.tar.bz2 |
Merge "Fix for an IOOBoundsException in Paint." into honeycomb
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Paint.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java index b739d83..d8a7f9d 100644 --- a/graphics/java/android/graphics/Paint.java +++ b/graphics/java/android/graphics/Paint.java @@ -1690,7 +1690,7 @@ public class Paint { int contextLen = contextEnd - contextStart; char[] buf = TemporaryBuffer.obtain(contextLen); TextUtils.getChars(text, contextStart, contextEnd, buf, 0); - int result = getTextRunCursor(buf, 0, contextLen, flags, offset, cursorOpt); + int result = getTextRunCursor(buf, 0, contextLen, flags, offset - contextStart, cursorOpt); TemporaryBuffer.recycle(buf); return result; } |