+ // We removed the non-graph annotations when filling the combobox\r
+ // so allow for them again here\r
+ int nograph = 0, graph = -1;\r
+ for (int i = 0; i < av.alignment.getAlignmentAnnotation().length; i++)\r
+ {\r
+ if (av.alignment.getAlignmentAnnotation()[i].graph == 0)\r
+ nograph ++;\r
+ else\r
+ graph ++;\r
+\r
+ if(graph==annotations.getSelectedIndex())\r
+ break;\r
+ }\r
+\r
+ jalview.datamodel.AlignmentAnnotation aa\r
+ = av.alignment.getAlignmentAnnotation()[graph+nograph];\r