Set alignFrame of gathered panels to be the source AlignFrame
authoramwaterhouse <Andrew Waterhouse>
Thu, 26 Oct 2006 09:41:12 +0000 (09:41 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 26 Oct 2006 09:41:12 +0000 (09:41 +0000)
src/jalview/gui/Desktop.java

index eb62972..9f74e3e 100755 (executable)
@@ -136,7 +136,7 @@ public class Desktop extends jalview.jbgui.GDesktop
         VamsasMenu.setVisible(true);
         vamsasLoad.setVisible(true);
       }
-      
+
     }
 
     /**
@@ -742,6 +742,7 @@ public class Desktop extends jalview.jbgui.GDesktop
             if (viewId.equals(ap.av.getSequenceSetId()))
             {
               gatherThis = true;
+              ap.alignFrame = source;
               ap.av.gatherViewsHere = false;
               ap.av.explodedPosition = af.getBounds();
               source.addAlignmentPanel(ap);
@@ -796,9 +797,9 @@ public class Desktop extends jalview.jbgui.GDesktop
      */
     public void setVamsasUpdate(boolean b) {
       jalview.bin.Cache.log.debug("Setting gui for Vamsas update "+(b ? "in progress" : "finished"));
-      vamsasLoad.setVisible(!b); 
+      vamsasLoad.setVisible(!b);
       vamsasStop.setVisible(!b);
-      
+
     }
 }