Skip to content

Commit

Permalink
Fixed issue #228 which was detected by appchecker where we were compa…
Browse files Browse the repository at this point in the history
…ring something to itself incorrectly
  • Loading branch information
Narflex committed Dec 12, 2016
1 parent 3d369e6 commit 9314476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/sage/MetaImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ private static boolean imageAreaTest(Shape s1, Object option)
if (!(option instanceof Shape)) return false;
Shape s2 = (Shape) option;
if (s1 == null || s2 == null) return false;
if (s2.getClass() != s2.getClass()) return false;
if (s1.getClass() != s2.getClass()) return false;
if (s1 instanceof RoundRectangle2D)
{
return s1.getBounds2D().equals(s2.getBounds2D()) &&
Expand Down

0 comments on commit 9314476

Please sign in to comment.