summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorDavid Kohen <dudy@dudy-new.(none)>2010-06-29 23:34:25 +0300
committerSteve Kondik <shade@chemlab.org>2010-06-30 21:35:44 -0400
commite4e147811d677390068aa0a5620d27e2969df28d (patch)
tree0ac3808c7856a7cc72cfb6043e8bb0c61fcc3dd2 /graphics
parent1b0aca31c3e03a5a323276cd15a8df4203a1792c (diff)
downloadframeworks_base-e4e147811d677390068aa0a5620d27e2969df28d.zip
frameworks_base-e4e147811d677390068aa0a5620d27e2969df28d.tar.gz
frameworks_base-e4e147811d677390068aa0a5620d27e2969df28d.tar.bz2
Fix excess "spaces" in BiDi strings.
The spaces are actually null chars.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Canvas.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java
index 82e2eaf..061b55f 100644
--- a/graphics/java/android/graphics/Canvas.java
+++ b/graphics/java/android/graphics/Canvas.java
@@ -1299,7 +1299,7 @@ public class Canvas {
} else ca2[i]=ca[srcindex];
} else {
- while (((srcindex-count)>=0)&&(ca[srcindex-count]<FIRST_RIGHT_TO_LEFT)){
+ while (((srcindex-count)>=0)&&((ca[srcindex-count]<FIRST_RIGHT_TO_LEFT)||(ca[srcindex-count]>LAST_RIGHT_TO_LEFT))){
count++;
}
int index=0;