From: Jim Procter Date: Tue, 25 Nov 2014 21:43:42 +0000 (+0000) Subject: fix for JAL-689 ensure fastpainting flag set only when actually fastpainting X-Git-Tag: Jalview_2_9~121^2~8^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e053bc41cad146ddeaae583b36ff509be0a6094a;p=jalview.git fix for JAL-689 ensure fastpainting flag set only when actually fastpainting --- 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,