IdCanvas holdRepaint()
authorBobHanson <hansonr@stolaf.edu>
Mon, 8 Jun 2020 21:59:22 +0000 (16:59 -0500)
committerBobHanson <hansonr@stolaf.edu>
Mon, 8 Jun 2020 21:59:22 +0000 (16:59 -0500)
src/jalview/gui/IdCanvas.java

index 0731bf3..f367c83 100755 (executable)
@@ -221,6 +221,12 @@ public class IdCanvas extends JPanel implements ViewportListenerI
   @Override
   public void paintComponent(Graphics g)
   {
+
+    if (av.getAlignPanel().getHoldRepaint())
+    {
+      return;
+    }
+
     g.setColor(Color.white);
     g.fillRect(0, 0, getWidth(), getHeight());