From e053bc41cad146ddeaae583b36ff509be0a6094a Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 25 Nov 2014 21:43:42 +0000 Subject: [PATCH] fix for JAL-689 ensure fastpainting flag set only when actually fastpainting --- src/jalview/gui/SeqCanvas.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 8b7f93a..d73ee70 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -258,16 +258,11 @@ public class SeqCanvas extends JComponent */ public void fastPaint(int horizontal, int vertical) { - if (fastpainting) + if (fastpainting || gg == null) { return; } fastpainting = true; - if (gg == null) - { - return; - } - fastPaint = true; gg.copyArea(horizontal * av.charWidth, vertical * av.charHeight, -- 1.7.10.2