Merge branch 'develop' into features/JAL-2446NCList
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 30 Jun 2017 04:38:32 +0000 (05:38 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 30 Jun 2017 04:38:32 +0000 (05:38 +0100)
1  2 
src/jalview/appletgui/SeqCanvas.java
src/jalview/gui/SeqCanvas.java

Simple merge
@@@ -288,21 -286,22 +288,22 @@@ public class SeqCanvas extends JCompone
      fastpainting = true;
      fastPaint = true;
      updateViewport();
-     gg.copyArea(horizontal * charWidth, vertical * charHeight, imgWidth,
-             imgHeight, -horizontal * charWidth, -vertical * charHeight);
  
      ViewportRanges ranges = av.getRanges();
 -    int sr = ranges.getStartRes();
 -    int er = ranges.getEndRes();
 -    int ss = ranges.getStartSeq();
 -    int es = ranges.getEndSeq();
 +    int startRes = ranges.getStartRes();
 +    int endRes = ranges.getEndRes();
 +    int startSeq = ranges.getStartSeq();
 +    int endSeq = ranges.getEndSeq();
      int transX = 0;
      int transY = 0;
  
+     gg.copyArea(horizontal * charWidth, vertical * charHeight, imgWidth,
+             imgHeight, -horizontal * charWidth, -vertical * charHeight);
      if (horizontal > 0) // scrollbar pulled right, image to the left
      {
 -      transX = (er - sr - horizontal) * charWidth;
 -      sr = er - horizontal;
 +      transX = (endRes - startRes - horizontal) * charWidth;
 +      startRes = endRes - horizontal;
      }
      else if (horizontal < 0)
      {