\r
int start=0, end = viewport.alignment.getWidth();\r
\r
- if(viewport.getSelectionGroup()!=null)\r
+ if(viewport.getSelectionGroup()!=null\r
+ || viewport.getSelectionGroup().sequences.size()<1)\r
{\r
seqs = viewport.getSelectionGroup().sequences;\r
start = viewport.getSelectionGroup().getStartRes();\r
int start = 0;\r
int end = viewport.alignment.getWidth();\r
\r
- if (viewport.getSelectionGroup() != null)\r
+ if (viewport.getSelectionGroup() != null\r
+ || viewport.getSelectionGroup().sequences.size()<1)\r
{\r
seqs = viewport.getSelectionGroup().sequences;\r
start = viewport.getSelectionGroup().getStartRes();\r
ColourSchemeI globalColourScheme = null;\r
boolean conservationColourSelected = false;\r
boolean abovePIDThreshold = false;\r
- SequenceGroup selectionGroup = new SequenceGroup();\r
+ SequenceGroup selectionGroup;\r
int charHeight;\r
int charWidth;\r
int chunkWidth;\r