Merge "Using robust equality check."

This commit is contained in:
Conley Owens
2011-04-28 14:57:08 -07:00
committed by Android Code Review

View File

@@ -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 {