From 324bee493b9dff84a73b610fb4234b72f9f20503 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 2 Nov 2006 15:13:34 +0000 Subject: [PATCH] return if image is null --- src/jalview/gui/AnnotationPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 417eb8c..315b141 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -108,7 +108,6 @@ public class AnnotationPanel extends JPanel implements MouseListener, public int adjustPanelHeight() { // setHeight of panels - image = null; AlignmentAnnotation[] aa = av.alignment.getAlignmentAnnotation(); int height = 0; @@ -659,6 +658,10 @@ public class AnnotationPanel extends JPanel implements MouseListener, { if(av.updatingConsensus || av.updatingConservation) { + if(image==null) + { + return; + } //We'll keep a record of the old image, //and draw a faded image until the calculation //has completed -- 1.7.10.2