JAL-1944 bugfix for wrong alignment numbering when exporting an alignment and export...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 6 Jun 2016 11:55:58 +0000 (12:55 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 6 Jun 2016 11:55:58 +0000 (12:55 +0100)
src/jalview/gui/AlignFrame.java

index aa07a93..7ab8311 100644 (file)
@@ -1325,10 +1325,10 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     else
     {
       alignmentToExport = viewport.getAlignment();
-      alignmentStartEnd = viewport.getAlignment()
-              .getVisibleStartAndEndIndex(
-                      viewport.getColumnSelection().getHiddenColumns());
     }
+    alignmentStartEnd = alignmentToExport
+            .getVisibleStartAndEndIndex(viewport.getColumnSelection()
+                    .getHiddenColumns());
     AlignmentExportData ed = new AlignmentExportData(alignmentToExport,
             omitHidden, alignmentStartEnd, settings);
     return ed;