fix for JAL-689 ensure fastpainting flag set only when actually fastpainting
authorJim Procter <jprocter@dundee.ac.uk>
Tue, 25 Nov 2014 21:43:42 +0000 (21:43 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Tue, 25 Nov 2014 21:43:42 +0000 (21:43 +0000)
src/jalview/gui/SeqCanvas.java

index 8b7f93a..d73ee70 100755 (executable)
@@ -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,