JAL-1577 rebuild menus when secondary structure manually updated
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Aug 2016 16:16:36 +0000 (17:16 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Aug 2016 16:16:36 +0000 (17:16 +0100)
src/jalview/gui/AnnotationPanel.java

index bb311ef..60c182e 100755 (executable)
@@ -351,7 +351,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
       }
     }
     else
-    // HELIX OR SHEET
+    // HELIX, SHEET or STEM
     {
       char type = 0;
       String symbol = "\u03B1";
@@ -412,9 +412,10 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
 
       }
     }
+
     av.getAlignment().validateAnnotation(aa[activeRow]);
     ap.alignmentChanged();
-
+    ap.alignFrame.setMenusForViewport();
     adjustPanelHeight();
     repaint();