From 26008266f6082cdb45f6ddc0588ca9eb8e740227 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 27 Apr 2007 08:51:13 +0000 Subject: [PATCH] bugfix for deleted annotation undo --- src/jalview/commands/EditCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/commands/EditCommand.java b/src/jalview/commands/EditCommand.java index ce88127..cbcc700 100644 --- a/src/jalview/commands/EditCommand.java +++ b/src/jalview/commands/EditCommand.java @@ -577,7 +577,7 @@ public class EditCommand 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) { -- 1.7.10.2