if(stretchGroup == null)\r
{\r
stretchGroup = av.alignment.findGroup( sequence );\r
- av.setSelectionGroup( stretchGroup );\r
+ if(res>stretchGroup.getStartRes() && res<stretchGroup.getEndRes())\r
+ av.setSelectionGroup(stretchGroup);\r
+ else\r
+ stretchGroup = null;\r
}\r
\r
else if(!stretchGroup.sequences.contains(sequence)\r
{\r
ConservationColourScheme ccs = (ConservationColourScheme)stretchGroup.cs;\r
\r
- Conservation c = new Conservation("Group",\r
- ResidueProperties.propHash, 3, stretchGroup.sequences, 0,\r
- av.alignment.getWidth() );\r
-\r
- c.calculate();\r
- c.verdict(false, 100);\r
- ccs = new ConservationColourScheme(c, ccs.cs);\r
\r
stretchGroup.cs = ccs;\r
\r