AlignmentAnnotation aa;\r
if (al.getAlignmentAnnotation() != null)\r
{\r
+\r
for (int i = 0; i < al.getAlignmentAnnotation().length; i++)\r
{\r
aa = al.getAlignmentAnnotation()[i];\r
+\r
+\r
if (aa.autoCalculated || !aa.visible)\r
{\r
continue;\r
\r
out.append("\n");\r
\r
- int nochunks = (aa.annotations.length / len) + 1;\r
+ int nochunks = Math.min(aa.annotations.length, al.getWidth())\r
+ / len + 1;\r
\r
for (int j = 0; j < nochunks; j++)\r
{\r