From 1c61dd81d8929f0e364fd534924ea7728d3ebc7b Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 6 Sep 2017 16:03:47 +0100 Subject: [PATCH] JAL-2721 no fastPaint if img has been nulled by fontChanged! --- src/jalview/gui/SeqCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.7.10.2