Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to equals() always returns false #222

Open
scuniff opened this issue Aug 25, 2023 · 1 comment
Open

Call to equals() always returns false #222

scuniff opened this issue Aug 25, 2023 · 1 comment

Comments

@scuniff
Copy link

scuniff commented Aug 25, 2023

The following should probably be reviewed:

https://github.com/imagej/ImageJ/blob/master/ij/gui/ImageWindow.java

Line 458
if (initialLoc!=null && ! bounds.equals(initialLoc) && !IJ.isMacro()

Referring to the code: bounds.equals(initialLoc)

variable bounds is of type java.awt.Rectangle
variable initialLoc is of type java.awt.Point

so the equals() method will always return false.

@rasband
Copy link
Member

rasband commented Aug 25, 2023

The ImageJ 1.45g14 daily build changes line 458 of ImageWindow.java from

if (initialLoc!=null && ! bounds.equals(initialLoc) && !IJ.isMacro()

to

if (!IJ.isMacro()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants