diff options
| author | Conley Owens <cco3@android.com> | 2011-04-28 14:57:08 -0700 |
|---|---|---|
| committer | Android Code Review <code-review@android.com> | 2011-04-28 14:57:08 -0700 |
| commit | e41d2aed9c8d990d31af70642ae688dad1d8fb4b (patch) | |
| tree | 801f118555bb163e604957fdcd30c12815253ffe /core/java/android | |
| parent | 1e29552bd5feeb24952a0486e3263396978212df (diff) | |
| parent | 2fb503f5102dd32a8ec391b26911528852703b90 (diff) | |
Merge "Using robust equality check."
Diffstat (limited to 'core/java/android')
| -rwxr-xr-x | core/java/android/text/Layout.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/text/Layout.java b/core/java/android/text/Layout.java index 4e197cd9774c..b62aa4050293 100755 --- a/core/java/android/text/Layout.java +++ b/core/java/android/text/Layout.java @@ -1154,7 +1154,7 @@ public abstract class Layout { if (h2 < 0.5f) h2 = 0.5f; - if (h1 == h2) { + if (Float.compare(h1, h2) == 0) { dest.moveTo(h1, top); dest.lineTo(h1, bottom); } else { |
