\r
sg.setEndRes(viewport.alignment.getWidth());\r
viewport.setSelectionGroup(sg);\r
- PaintRefresher.Refresh(null);\r
+ PaintRefresher.Refresh(null, viewport.alignment);\r
}\r
\r
public void deselectAllSequenceMenuItem_actionPerformed(ActionEvent e)\r
viewport.setSelectionGroup(null);\r
viewport.getColumnSelection().clear();\r
viewport.setSelectionGroup(null);\r
- PaintRefresher.Refresh(null);\r
+ PaintRefresher.Refresh(null, viewport.alignment);\r
}\r
\r
public void invertSequenceMenuItem_actionPerformed(ActionEvent e)\r
{\r
SequenceGroup sg = viewport.getSelectionGroup();\r
+ if(sg==null)\r
+ {\r
+ selectAllSequenceMenuItem_actionPerformed(null);\r
+ return;\r
+ }\r
\r
for (int i = 0; i < viewport.getAlignment().getSequences().size();\r
i++)\r
sg.addOrRemove(viewport.getAlignment().getSequenceAt(i), false);\r
}\r
\r
- PaintRefresher.Refresh(null);\r
+ PaintRefresher.Refresh(null, viewport.alignment);\r
}\r
\r
public void remove2LeftMenuItem_actionPerformed(ActionEvent e)\r