From 09af5cd382fe2ce9f5ce1a9641615552c96fed51 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 191a7d8..4e896a0 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -283,7 +283,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