summaryrefslogtreecommitdiffstats
path: root/graphics/java/android
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2011-08-08 10:58:13 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-08 10:58:13 -0700
commit253267256997b2bd5cf1c40e1302a4a1240d756f (patch)
treefab26b98488a4af268a5a94af95a3cc53b54fe48 /graphics/java/android
parent4974bc1be68a77cf9709a8c50ef6de06ce8a3a0d (diff)
parentf2ce877c1dde094ab599f0d3103145c9381ab260 (diff)
downloadframeworks_base-253267256997b2bd5cf1c40e1302a4a1240d756f.zip
frameworks_base-253267256997b2bd5cf1c40e1302a4a1240d756f.tar.gz
frameworks_base-253267256997b2bd5cf1c40e1302a4a1240d756f.tar.bz2
Merge "Fix bug #4584320 Single Line EditText not drawing correctly with spans applied (ICS)"
Diffstat (limited to 'graphics/java/android')
-rw-r--r--graphics/java/android/graphics/Paint.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java
index 163bd4a..6562510 100644
--- a/graphics/java/android/graphics/Paint.java
+++ b/graphics/java/android/graphics/Paint.java
@@ -1602,7 +1602,7 @@ public class Paint {
int len = end - start;
char[] buf = TemporaryBuffer.obtain(contextLen);
TextUtils.getChars(text, start, end, buf, 0);
- float result = getTextRunAdvances(buf, start - contextStart, len,
+ float result = getTextRunAdvances(buf, 0, len,
0, contextLen, flags, advances, advancesIndex, reserved);
TemporaryBuffer.recycle(buf);
return result;