Skip to content

Commit e41d2ae

Browse files
cco3Android Code Review
authored andcommitted
Merge "Using robust equality check."
2 parents 1e29552 + 2fb503f commit e41d2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/text/Layout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ public void getCursorPath(int point, Path dest,
11541154
if (h2 < 0.5f)
11551155
h2 = 0.5f;
11561156

1157-
if (h1 == h2) {
1157+
if (Float.compare(h1, h2) == 0) {
11581158
dest.moveTo(h1, top);
11591159
dest.lineTo(h1, bottom);
11601160
} else {

0 commit comments

Comments
 (0)