Login  Register

Bugs in the Window menu

Posted by Stein Rørvik on Oct 22, 2020; 6:39pm
URL: http://imagej.273.s1.nabble.com/Bugs-in-the-Window-menu-tp5024099.html

There has for a long time been a bug in the Window menu that sometimes causes the wrong image to be selected when selecting an image name from the dropdown, but I have not been able to reproduce it earlier as it depends on the order of window opening and closing. But today I found a simple way to reproduce the issue:

dir = "C:/Users/steinr/Temp/t1-head/";
run("Close All");
run("Image Sequence...", "open=&dir sort");
rename("t1-head");
run("Image Sequence...", "open=&dir sort");
rename("t2-head");
run("Image Sequence...", "open=&dir sort");
rename("t3-head");
run("Image Sequence...", "open=&dir sort");
rename("t4-head");

Selecting the first image on the list selects the first window, but the window title entries in the Window menu is in the wrong order; "t1-head" is at the bottom of the list.

This bug has been there for a couple of years; I reverted to earlier versions and found that this was working in 1.52e and fails in 1.52f.

Another bug is that if a plugin should happen to install an entry to the Window menu, the plugin entry appears as expected before the list of open images, but the image titles in the menu do not match the corresponding image window. Probably the building of the window menu list forgets to take into account the possibility of extra menu entries already there. This bug does not occur in Fiji.

Stein

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html