X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fanalysis%2FAlignmentUtils.java;fp=src%2Fjalview%2Fanalysis%2FAlignmentUtils.java;h=0906872507a184e146456f5891062aa2e0c66076;hb=4c2789fc5d5f3ccc8ef55d833d3c87dcb45956c2;hp=42c4b76b0058084ba1e8492a09a83d309fc4c0e8;hpb=be87ee66ed7952a13c1b402257b8a270ba9168e0;p=jalview.git diff --git a/src/jalview/analysis/AlignmentUtils.java b/src/jalview/analysis/AlignmentUtils.java index 42c4b76..0906872 100644 --- a/src/jalview/analysis/AlignmentUtils.java +++ b/src/jalview/analysis/AlignmentUtils.java @@ -1471,9 +1471,19 @@ public class AlignmentUtils */ final Iterable matchedAlignmentAnnotations = al .findAnnotations(seq, dsann.getCalcId(), dsann.label); - if (matchedAlignmentAnnotations == null - || !matchedAlignmentAnnotations.iterator().hasNext()) + boolean found=false; + if (matchedAlignmentAnnotations != null) { + for (AlignmentAnnotation matched:matchedAlignmentAnnotations) + { + if (dsann.description.equals(matched.description)) + { + found=true; + break; + } + } + } + if (!found) { result.add(dsann); if (labelForCalcId != null) {