JAL-1466 don't include empty columns if no upstream sequence data available for align...
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 21 Apr 2014 15:02:03 +0000 (16:02 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 21 Apr 2014 15:02:03 +0000 (16:02 +0100)
src/jalview/analysis/AlignmentUtils.java

index 5bbdc4a..85699a4 100644 (file)
@@ -28,7 +28,7 @@ public class AlignmentUtils
     for (SequenceI s:core.getSequences())
     {
       SequenceI newSeq = s.deriveSequence();
-      if (newSeq.getStart()>maxoffset)
+      if (newSeq.getStart()>maxoffset && newSeq.getDatasetSequence().getStart()<s.getStart())
       {
         maxoffset = newSeq.getStart();
       }