fix accidental breakage of annotation panel redraw on horizontal slide
authorjprocter <Jim Procter>
Wed, 7 Nov 2007 13:49:49 +0000 (13:49 +0000)
committerjprocter <Jim Procter>
Wed, 7 Nov 2007 13:49:49 +0000 (13:49 +0000)
src/jalview/gui/AnnotationPanel.java

index 07841d2..676fecf 100755 (executable)
@@ -608,26 +608,20 @@ public class AnnotationPanel
     drawComponent(gg, av.startRes, av.endRes + 1);
     g.drawImage(image, 0, 0, this);
   }
-  boolean fpainting=false;
   /**
-   * Thread safe repaint
+   * non-Thread safe repaint
    *
    * @param horizontal repaint with horizontal shift in alignment
    */
   public void fastPaint(int horizontal)
   {
-    
-    if (fpainting)
-      return;
-    fpainting=true;
 
     if ( (horizontal == 0)
         || gg == null
         || av.alignment.getAlignmentAnnotation() == null
         || av.alignment.getAlignmentAnnotation().length < 1
         || av.updatingConsensus
-        || av.updatingConservation
-        ) // || fpainting)
+        || av.updatingConservation)
     {
       repaint();
       return;
@@ -656,7 +650,7 @@ public class AnnotationPanel
 
     fastPaint = true;
     repaint();
-    fpainting=false;
+
   }
 
   /**