JAL-2839 don't search minimised panels from Finder
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 12 Mar 2018 12:18:40 +0000 (12:18 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 12 Mar 2018 12:18:40 +0000 (12:18 +0000)
src/jalview/gui/Finder.java

index a75c6ff..e5093d4 100755 (executable)
@@ -193,7 +193,8 @@ public class Finder extends GFinder
     for (int f = 0; f < frames.length; f++)
     {
       JInternalFrame alignFrame = frames[f];
-      if (alignFrame != null && alignFrame instanceof AlignFrame)
+      if (alignFrame != null && alignFrame instanceof AlignFrame
+              && !alignFrame.isIcon())
       {
         av = ((AlignFrame) alignFrame).viewport;
         ap = ((AlignFrame) alignFrame).alignPanel;