JAL-1230 update alignment state for annotation edits, and validate annotation panel...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 23 Jun 2013 18:05:42 +0000 (19:05 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 23 Jun 2013 18:05:42 +0000 (19:05 +0100)
src/jalview/appletgui/AnnotationPanel.java
src/jalview/gui/AnnotationPanel.java

index f63cb76..154652d 100755 (executable)
@@ -253,10 +253,10 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI,
       }
     }
 
-    aa[activeRow].validateRangeAndDisplay();
+    av.getAlignment().validateAnnotation(aa[activeRow]);
 
-    adjustPanelHeight();
     ap.alignmentChanged();
+    adjustPanelHeight();
     repaint();
 
     return;
index 169bff1..ed899b1 100755 (executable)
@@ -376,10 +376,10 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
         anot[index].displayCharacter = label;
       }
     }
-    aa[activeRow].validateRangeAndDisplay();
-
-    adjustPanelHeight();
+    av.getAlignment().validateAnnotation(aa[activeRow]);
     ap.alignmentChanged();
+    
+    adjustPanelHeight();
     repaint();
 
     return;