X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSecondaryStructureAnnotation.java;h=e39564846885d24249eda0b9d68f3135e5311b40;hb=a83adb45bdf9554e270921b4baad94defd314b36;hp=476eb19f9cf7667b8234cdb2350a7d36cc0ee6e6;hpb=d4ec118f86b5c9dee801e743c46aaacc7bb521d1;p=jalview.git diff --git a/src/jalview/datamodel/SecondaryStructureAnnotation.java b/src/jalview/datamodel/SecondaryStructureAnnotation.java index 476eb19..e395648 100644 --- a/src/jalview/datamodel/SecondaryStructureAnnotation.java +++ b/src/jalview/datamodel/SecondaryStructureAnnotation.java @@ -25,7 +25,9 @@ import fr.orsay.lri.varna.models.rna.RNA; public class SecondaryStructureAnnotation extends AlignmentAnnotation { - private static RNA _rna = null; + // was static, but that cannot work here + + private RNA _rna = null; public SecondaryStructureAnnotation(RNA rna) { @@ -44,7 +46,7 @@ public class SecondaryStructureAnnotation extends AlignmentAnnotation Annotation[] ann = new Annotation[rna.getSize()]; for (int i = 0; i < ann.length; i++) { - ann[i] = new Annotation(_rna.getStructDBN(true), "", ' ', 0f); + ann[i] = new Annotation(rna.getStructDBN(true), "", ' ', 0f); ; } return ann;