AlignmentAnnotation[] aan = av.alignment.getAlignmentAnnotation();
Hashtable oldrfs = new Hashtable();
+ if (aan != null)
+ {
for (int an = 0; an < aan.length; an++)
{
if (aan[an].autoCalculated && aan[an].groupRef != null)
aan[an] = null;
}
}
+ }
SequenceGroup sg;
+ if (gr != null)
+ {
for (int g = 0; g < gr.size(); g++)
{
updateCalcs = false;
sg.recalcConservation();
}
}
+ }
oldrfs.clear();
adjustAnnotationHeight();
}
break;
}
}
+ } else {
+ selectedRow = -1;
}
}
AlignmentAnnotation[] aa = ap.av.alignment.getAlignmentAnnotation();
if (SwingUtilities.isLeftMouseButton(evt))
{
- if (selectedRow < aa.length)
+ if (aa!=null && selectedRow < aa.length)
{
if (aa[selectedRow].groupRef != null)
{
// TODO: we don't need to do this if the viewport is aready visible.
Desktop.addInternalFrame(af, view.getTitle(), view.getWidth(), view
.getHeight());
+ af.alignPanel.updateAnnotation(false); // recompute any autoannotation
return af;
}