From c7cfa544c2725438350aa697dcdf6fe5d93c1c31 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 26 Sep 2019 16:22:12 +0100 Subject: [PATCH] JAL-3070 cope when dataset sequence is passed --- src/jalview/analysis/AlignmentAnnotationUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 1.7.10.2