From: gmungoc Date: Wed, 6 Sep 2017 15:03:47 +0000 (+0100) Subject: JAL-2721 no fastPaint if img has been nulled by fontChanged! X-Git-Tag: Release_2_10_2b1~3^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1c61dd81d8929f0e364fd534924ea7728d3ebc7b;p=jalview.git JAL-2721 no fastPaint if img has been nulled by fontChanged! --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index d434ba8..c0dd1b0 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -281,7 +281,7 @@ public class SeqCanvas extends JComponent implements ViewportListenerI */ public void fastPaint(int horizontal, int vertical) { - if (fastpainting || gg == null) + if (fastpainting || gg == null || img == null) { return; }