Merge "Using robust equality check."
This commit is contained in:
@@ -1154,7 +1154,7 @@ public abstract class Layout {
|
|||||||
if (h2 < 0.5f)
|
if (h2 < 0.5f)
|
||||||
h2 = 0.5f;
|
h2 = 0.5f;
|
||||||
|
|
||||||
if (h1 == h2) {
|
if (Float.compare(h1, h2) == 0) {
|
||||||
dest.moveTo(h1, top);
|
dest.moveTo(h1, top);
|
||||||
dest.lineTo(h1, bottom);
|
dest.lineTo(h1, bottom);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user