JAL-2156 resolve and add complementary views for saveAlignment
authorJim Procter <jprocter@issues.jalview.org>
Wed, 27 Jul 2016 10:57:24 +0000 (11:57 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 27 Jul 2016 13:36:50 +0000 (14:36 +0100)
src/jalview/gui/Jalview2XML.java

index 9861697..b027246 100644 (file)
@@ -635,9 +635,15 @@ public class Jalview2XML
       JarOutputStream jout = new JarOutputStream(fos);
       List<AlignFrame> frames = new ArrayList<AlignFrame>();
 
+      // resolve splitframes
+      if (af.getViewport().getCodingComplement() != null)
       {
+        frames = ((SplitFrame) af.getSplitViewContainer()).getAlignFrames();
       }
+      else
+      {
         frames.add(af);
+      }
       saveAllFrames(frames, jout);
       try
       {