git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
16c9b6b
)
Undo cut from end of alignment, padding on
author
amwaterhouse
<Andrew Waterhouse>
Tue, 21 Nov 2006 16:02:23 +0000
(16:02 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 21 Nov 2006 16:02:23 +0000
(16:02 +0000)
src/jalview/commands/EditCommand.java
patch
|
blob
|
history
diff --git
a/src/jalview/commands/EditCommand.java
b/src/jalview/commands/EditCommand.java
index
97448e0
..
83e4417
100644
(file)
--- a/
src/jalview/commands/EditCommand.java
+++ b/
src/jalview/commands/EditCommand.java
@@
-240,6
+240,17
@@
public class EditCommand implements CommandI
\r
if(command.string!=null && command.string[i]!=null)
\r
{
\r
\r
if(command.string!=null && command.string[i]!=null)
\r
{
\r
+ if(command.position>=tmp.length())
\r
+ {
\r
+ //This occurs if padding is on, and residues
\r
+ //are removed from end of alignment
\r
+ int length = command.position-tmp.length();
\r
+ while (length > 0)
\r
+ {
\r
+ tmp.append(command.gapChar);
\r
+ length--;
\r
+ }
\r
+ }
\r
tmp.insert(command.position, command.string[i]);
\r
command.string[i] = null;
\r
}
\r
tmp.insert(command.position, command.string[i]);
\r
command.string[i] = null;
\r
}
\r
@@
-279,6
+290,7
@@
public class EditCommand implements CommandI
int number,
\r
AlignmentI al)
\r
{
\r
int number,
\r
AlignmentI al)
\r
{
\r
+ this.gapChar = al.getGapCharacter();
\r
this.command = command;
\r
this.seqs = seqs;
\r
this.position = position;
\r
this.command = command;
\r
this.seqs = seqs;
\r
this.position = position;
\r