JAL-4134 colour by annotation needs distinct annotation elements to hold colours
[jalview.git] / src / jalview / datamodel / Alignment.java
index 1ec702c..89ec5ad 100755 (executable)
@@ -2101,8 +2101,7 @@ public class Alignment implements AlignmentI, AutoCloseable
     AlignmentAnnotation aa = cmholder.addContactList(cm);
 
     Annotation _aa[] = new Annotation[getWidth()];
-    Annotation dummy = new Annotation(0.0f);
-    for (int i = 0; i < _aa.length; _aa[i++] = dummy)
+    for (int i = 0; i < _aa.length; _aa[i++] = new Annotation(0.0f))
     {
       ;
     }