SequenceGroup sg = new SequenceGroup();\r
sg.setStartRes(res);\r
sg.setEndRes(res);\r
- sg.addSequence(sequence);\r
+ sg.addSequence(sequence, false);\r
av.setSelectionGroup(sg);\r
stretchGroup = sg;\r
\r
return;\r
}\r
\r
+ stretchGroup.recalcConservation();\r
+\r
if (stretchGroup.cs instanceof ClustalxColourScheme)\r
{\r
stretchGroup.cs = new ClustalxColourScheme(stretchGroup.sequences,\r
av.alignment.getWidth());\r
- seqCanvas.repaint();\r
}\r
\r
else if (stretchGroup.cs instanceof ConservationColourScheme)\r
SliderPanel.setConservationSlider(ap, stretchGroup.cs,\r
stretchGroup.getName());\r
\r
- seqCanvas.repaint();\r
}\r
else\r
{\r
changeEndRes = false;\r
changeStartRes = false;\r
stretchGroup = null;\r
+ seqCanvas.repaint();\r
ap.repaint();\r
}\r
\r
\r
if (stretchGroup.sequences.contains(nextSeq))\r
{\r
- stretchGroup.deleteSequence(seq);\r
- stretchGroup.deleteSequence(nextSeq);\r
+ stretchGroup.deleteSequence(seq, false);\r
+ stretchGroup.deleteSequence(nextSeq, false);\r
}\r
else\r
{\r
if (seq != null)\r
{\r
- stretchGroup.addSequence(seq);\r
+ stretchGroup.addSequence(seq, false);\r
}\r
- stretchGroup.addSequence(nextSeq);\r
+ stretchGroup.addSequence(nextSeq, false);\r
}\r
}\r
oldSeq = y;\r