JAL-2778 tidy
[jalview.git] / src / jalview / gui / ScalePanel.java
index e9cb04f..b135fc1 100755 (executable)
@@ -555,7 +555,11 @@ public class ScalePanel extends JPanel
             || evt.getPropertyName().equals(ViewportRanges.STARTRESANDSEQ))
     {
       // scroll event, repaint panel
-      av.getAlignPanel().alignFrame.repaint();
+       
+       // Call repaint on alignment panel so that repaints from other alignment
+    // panel components can be aggregated. Otherwise performance of the overview
+    // window and others may be adversely affected.
+      av.getAlignPanel().repaint();
     }
   }