Merge branch 'bug/JAL-2778again' into releases/Release_2_10_4_Branch
authorJim Procter <jprocter@issues.jalview.org>
Wed, 21 Feb 2018 17:19:01 +0000 (17:19 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 21 Feb 2018 17:19:01 +0000 (17:19 +0000)
1  2 
src/jalview/datamodel/Alignment.java
src/jalview/gui/AnnotationPanel.java
src/jalview/gui/Desktop.java
src/jalview/gui/IdCanvas.java
src/jalview/gui/ScalePanel.java
src/jalview/gui/SeqCanvas.java

Simple merge
Simple merge
Simple merge
Simple merge
@@@ -550,11 -552,14 +552,15 @@@ public class ScalePanel extends JPane
      // paint, so scroll events are identified as changes to the horizontal or
      // vertical start value.
      if (evt.getPropertyName().equals(ViewportRanges.STARTRES)
 -            || evt.getPropertyName().equals(ViewportRanges.STARTRESANDSEQ))
 +            || evt.getPropertyName().equals(ViewportRanges.STARTRESANDSEQ)
 +            || evt.getPropertyName().equals(ViewportRanges.MOVE_VIEWPORT))
      {
        // scroll event, repaint panel
-       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();
      }
    }
  
Simple merge