JAL-2542 correct adjustment of sequence features for flanking sequence
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 24 May 2017 10:26:11 +0000 (11:26 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 24 May 2017 10:26:11 +0000 (11:26 +0100)
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)
               {