From 26ca64941c8b2c5d0d141b4212bfbc5a61e15b05 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 3 Sep 2012 15:01:09 +0100 Subject: [PATCH] JAL-1153 ensure _linecolour is copied in copy constructor --- src/jalview/datamodel/AlignmentAnnotation.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index 6212d4d..82e8ae4 100755 --- a/src/jalview/datamodel/AlignmentAnnotation.java +++ b/src/jalview/datamodel/AlignmentAnnotation.java @@ -557,7 +557,14 @@ public class AlignmentAnnotation this.annotations = new Annotation[ann.length]; for (int i = 0; i < ann.length; i++) { - annotations[i] = new Annotation(ann[i]); + if (ann[i]!=null) + { + annotations[i] = new Annotation(ann[i]); + if (_linecolour!=null) + { + _linecolour = annotations[i].colour; + } + } } ; if (annotation.sequenceRef != null) -- 1.7.10.2