From c844ccd6f1f16178f31f1239057326cf8bcee6e3 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 12 Sep 2005 12:27:08 +0000 Subject: [PATCH] Dont fastpaint if movement is zero --- src/jalview/gui/AlignmentPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index fae6dfc..b3b2865 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -479,7 +479,7 @@ public class AlignmentPanel extends GAlignmentPanel int xShift = av.getStartRes() - oldX; int yShift = av.getStartSeq() - oldY; - if ( (xShift == 0 && yShift == 0) || + if ( (xShift != 0 && yShift != 0) || (Math.abs(xShift) > av.getEndRes() - av.getStartRes() || Math.abs(yShift) > av.getEndSeq() - av.getStartSeq()) || av.getWrapAlignment() -- 1.7.10.2