JAL-1713 update from Jalview 2.11.3 develop
[jalview.git] / src / jalview / gui / OverviewPanel.java
index 3e38f2b..872d142 100755 (executable)
@@ -413,7 +413,9 @@ public class OverviewPanel extends JPanel
        * close the parent frame (which also removes it from the
        * Desktop Windows menu)
        */
-      internalFrame.setClosed(true);
+      ((JInternalFrame) SwingUtilities
+              .getAncestorOfClass(JInternalFrame.class, (this)))
+                      .setClosed(true);
     } catch (PropertyVetoException e)
     {
       // ignore