Merge branch 'features/JAL-4071_visibleFeaturesCounter' into features/JAL-3417_sdppre...
[jalview.git] / src / jalview / workers / AnnotationWorker.java
index 8f37f15..b812c65 100644 (file)
@@ -90,7 +90,12 @@ 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);
+            if (ann.description!=null) {
+              theAnn.description = ann.description;
+            }
             theAnn.showAllColLabels = true;
             theAnn.graph = AlignmentAnnotation.BAR_GRAPH;
             theAnn.scaleColLabel = true;