JAL-2542 correct adjustment of sequence features for flanking sequence
[jalview.git] / src / jalview / ws / DBRefFetcher.java
index fd511dc..493a13c 100644 (file)
@@ -705,7 +705,7 @@ public class DBRefFetcher implements Runnable
                */
               int start = sequenceStart;
               int end = sequence.getEnd();
-              int startShift = 1 - absStart - start;
+              final int startShift = absStart - start + 1;
 
               if (startShift != 0)
               {