y %= chunkHeight;\r
seq = y / av.getCharHeight() + av.getStartSeq();\r
\r
- // chunkHeight = (da.getHeight() + 2)*charHeight;\r
- // startx += chunkWidth;\r
}\r
else\r
{\r
if(stretchGroup==null)\r
return;\r
\r
+ if(res>av.alignment.getWidth()-2)\r
+ res = av.alignment.getWidth()-2;\r
+\r
+\r
if(stretchGroup.getEndRes()==res)\r
// Edit end res position of selected group\r
changeEndRes = true;\r
}\r
else\r
{\r
+ if(seq!=null)\r
stretchGroup.addSequence(seq);\r
stretchGroup.addSequence(nextSeq);\r
}\r