JAL-3401 reset 'no repaint' flag after New View / copyAlignPanel
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 5 Sep 2019 09:56:44 +0000 (10:56 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 5 Sep 2019 09:56:44 +0000 (10:56 +0100)
src/jalview/project/Jalview2XML.java

index 1a25270..cadc253 100644 (file)
@@ -6118,14 +6118,7 @@ public class Jalview2XML
     AlignFrame af = loadFromObject(jm, null, false, null);
     af.getAlignPanels().clear();
     af.closeMenuItem_actionPerformed(true);
-
-    /*
-     * if(ap.av.getAlignment().getAlignmentAnnotation()!=null) { for(int i=0;
-     * i<ap.av.getAlignment().getAlignmentAnnotation().length; i++) {
-     * if(!ap.av.getAlignment().getAlignmentAnnotation()[i].autoCalculated) {
-     * af.alignPanel.av.getAlignment().getAlignmentAnnotation()[i] =
-     * ap.av.getAlignment().getAlignmentAnnotation()[i]; } } }
-     */
+    af.alignPanel.setHoldRepaint(false);
 
     return af.alignPanel;
   }