}
int tSize = 0;
-
+ if (annotations[a].annotations == null)
+ {
+ // nothing to edit here ?
+ continue;
+ }
aSize = annotations[a].annotations.length;
if (insert)
{
0, temp, 0, copylen); //command.position);
Annotation[] deleted = new Annotation[command.number];
- if (copylen>command.position) {
+ if (copylen>=command.position) {
copylen = Math.min(command.number, annotations[a].annotations.length-command.position);
if (copylen>0)
{