JAL-1925 update source version in license
[jalview.git] / src / jalview / io / FormatAdapter.java
index 63a14d7..182f2f4 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
+ * Copyright (C) 2015 The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -63,9 +63,9 @@ public class FormatAdapter extends AppletFormatAdapter
       annotFromStructure = jalview.bin.Cache.getDefault("ADD_TEMPFACT_ANN",
               true);
       localSecondaryStruct = jalview.bin.Cache.getDefault("ADD_SS_ANN",
-            true);
-    serviceSecondaryStruct = jalview.bin.Cache.getDefault("USE_RNAVIEW",
-            true);
+              true);
+      serviceSecondaryStruct = jalview.bin.Cache.getDefault("USE_RNAVIEW",
+              true);
     }
     else
     {
@@ -107,8 +107,6 @@ public class FormatAdapter extends AppletFormatAdapter
       {
         startRes = seqs[i].getStart();
         endRes = seqs[i].getEnd();
-
-
         if (startEnd != null)
         {
           startIndex = startEnd[0];
@@ -128,9 +126,7 @@ public class FormatAdapter extends AppletFormatAdapter
           }
 
           startRes = seqs[i].findPosition(startIndex);
-          startRes = seqs[i].getStart() > 1 ? startRes - seqs[i].getStart()
-                  : startRes;
-          endRes = seqs[i].findPosition(endIndex) - seqs[i].getStart();
+          endRes = seqs[i].findPosition(endIndex);
         }
 
         tmp[i] = new Sequence(seqs[i].getName(), omitHiddenColumns[i],
@@ -271,14 +267,12 @@ public class FormatAdapter extends AppletFormatAdapter
           ColumnSelection colSel)
   {
     return formatSequences(format, alignment, omitHidden, exportRange,
-            suffix, colSel,
-            null);
+            suffix, colSel, null);
   }
 
   public String formatSequences(String format, AlignmentI alignment,
           String[] omitHidden, int[] exportRange, boolean suffix,
-          ColumnSelection colSel,
-          jalview.datamodel.SequenceGroup selgp)
+          ColumnSelection colSel, jalview.datamodel.SequenceGroup selgp)
   {
     if (omitHidden != null)
     {
@@ -363,5 +357,4 @@ public class FormatAdapter extends AppletFormatAdapter
             selectedOnly);
   }
 
-
 }