From: Jim Procter Date: Thu, 26 Sep 2019 15:22:12 +0000 (+0100) Subject: JAL-3070 cope when dataset sequence is passed X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=c7cfa544c2725438350aa697dcdf6fe5d93c1c31 JAL-3070 cope when dataset sequence is passed --- diff --git a/src/jalview/analysis/AlignmentAnnotationUtils.java b/src/jalview/analysis/AlignmentAnnotationUtils.java index dd5e080..5c2d936 100644 --- a/src/jalview/analysis/AlignmentAnnotationUtils.java +++ b/src/jalview/analysis/AlignmentAnnotationUtils.java @@ -245,8 +245,8 @@ public class AlignmentAnnotationUtils * association as necessary. * * @param newAnnot - * - annotation row associated with an alignment sequence to be - * propagated to its dataset sequence. + * - annotation row associated with a sequence to be propagated to + * its reference annotation * @param typeName * - label used to match existing row * @param calcId @@ -257,7 +257,7 @@ public class AlignmentAnnotationUtils { if (newAnnot.sequenceRef != null) { - SequenceI dsseq = newAnnot.sequenceRef.getDatasetSequence(); + SequenceI dsseq = newAnnot.sequenceRef; while (dsseq.getDatasetSequence() != null) { dsseq = dsseq.getDatasetSequence();