JAL-3417 findOrCreateAnnotation is designed to make unique rows based on Label+calcId...
authorJim Procter <jprocter@issues.jalview.org>
Fri, 23 Aug 2019 15:12:59 +0000 (16:12 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 23 Aug 2019 15:12:59 +0000 (16:12 +0100)
src/jalview/workers/AnnotationWorker.java

index 8f37f15..56361fa 100644 (file)
@@ -90,7 +90,9 @@ class AnnotationWorker extends AlignCalcWorker
           for (AlignmentAnnotation ann : anns)
           {
             AlignmentAnnotation theAnn = alignment.findOrCreateAnnotation(
-                    ann.label, ann.description, false, null, null);
+                    ann.label, ann.getCalcId(), ann.autoCalculated,
+                    ann.sequenceRef,
+                    ann.groupRef);
             theAnn.showAllColLabels = true;
             theAnn.graph = AlignmentAnnotation.BAR_GRAPH;
             theAnn.scaleColLabel = true;