*/\r
public void mousePressed(MouseEvent evt)\r
{\r
- int height = 0;\r
- activeRow = -1;\r
+\r
\r
AlignmentAnnotation[] aa = av.alignment.getAlignmentAnnotation();\r
if(aa==null)\r
return;\r
\r
+\r
+ int height = 0;\r
+ activeRow = 0;\r
+\r
+\r
for (int i = 0; i < aa.length; i++)\r
{\r
if (aa[i].visible)\r
}\r
}\r
\r
+\r
if (SwingUtilities.isRightMouseButton(evt))\r
{\r
if (av.getColumnSelection() == null)\r
column++;\r
}\r
\r
+ if(column>=row.annotations.length)\r
+ column = row.annotations.length-1;\r
+\r
x += av.charWidth;\r
\r
if (row.hasIcons)\r