From: jprocter Date: Mon, 3 Sep 2012 14:01:09 +0000 (+0100) Subject: JAL-1153 ensure _linecolour is copied in copy constructor X-Git-Tag: Jalview_2_9~349 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=26ca64941c8b2c5d0d141b4212bfbc5a61e15b05;p=jalview.git JAL-1153 ensure _linecolour is copied in copy constructor --- 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)