-
- if (command.seqs[i].getDatasetSequence() != null
- || command.seqs[i].getSequenceFeatures() != null)
+ SequenceI oldds = command.seqs[i].getDatasetSequence();
+ if (command.oldds!=null && command.oldds[i]!=null)
+ {
+ // we are redoing an undone cut.
+ command.seqs[i].setDatasetSequence(null);
+ }
+ command.seqs[i].deleteChars(command.position,
+ command.position + command.number);
+ if (command.oldds!=null && command.oldds[i]!=null)