patches for # JAL-254 and JAL-548
[jalview.git] / src / jalview / gui / Jalview2XML.java
index 22977a9..4c40d2d 100755 (executable)
@@ -2942,10 +2942,10 @@ public class Jalview2XML
     }
 
     af.setMenusFromViewport(af.viewport);
-    af.alignPanel.updateAnnotation(false); // recompute any autoannotation
     // TODO: we don't need to do this if the viewport is aready visible.
     Desktop.addInternalFrame(af, view.getTitle(), view.getWidth(), view
             .getHeight());
+    af.alignPanel.updateAnnotation(false); // recompute any autoannotation
     return af;
   }