Dont fastpaint if movement is zero
authoramwaterhouse <Andrew Waterhouse>
Mon, 12 Sep 2005 12:27:08 +0000 (12:27 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 12 Sep 2005 12:27:08 +0000 (12:27 +0000)
src/jalview/gui/AlignmentPanel.java

index fae6dfc..b3b2865 100755 (executable)
@@ -479,7 +479,7 @@ public class AlignmentPanel extends GAlignmentPanel
         int xShift = av.getStartRes() - oldX;\r
         int yShift = av.getStartSeq() - oldY;\r
 \r
-        if ( (xShift == 0 && yShift == 0) ||\r
+        if ( (xShift != 0 && yShift != 0) ||\r
             (Math.abs(xShift) > av.getEndRes() - av.getStartRes()\r
              || Math.abs(yShift) > av.getEndSeq() - av.getStartSeq())\r
              || av.getWrapAlignment()\r