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
(parent:
ff450fa
)
JAL-2526 don't retain lastColumnPosition from an invalidated cursor
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 20 Jun 2017 09:35:25 +0000
(10:35 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 20 Jun 2017 09:35:25 +0000
(10:35 +0100)
src/jalview/datamodel/Sequence.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Sequence.java
b/src/jalview/datamodel/Sequence.java
index
96747e4
..
783b1bc
100755
(executable)
--- a/
src/jalview/datamodel/Sequence.java
+++ b/
src/jalview/datamodel/Sequence.java
@@
-723,7
+723,10
@@
public class Sequence extends ASequence implements SequenceI
*/
protected void updateCursor(int residuePos, int column, int startColumn)
{
- int endColumn = cursor == null ? 0 : cursor.lastColumnPosition;
+ /*
+ * preserve end residue column provided cursor was valid
+ */
+ int endColumn = isValidCursor(cursor) ? cursor.lastColumnPosition : 0;
if (residuePos == this.end)
{
endColumn = column;