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:
c038755
)
JAL-192 patch off-by-one for pathological gap case
author
Jim Procter
<jprocter@issues.jalview.org>
Fri, 6 May 2016 13:02:25 +0000
(14:02 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Fri, 6 May 2016 13:02:25 +0000
(14:02 +0100)
JAL-2099 fix incorrect numbering with hidden-columns
src/jalview/gui/ScalePanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/ScalePanel.java
b/src/jalview/gui/ScalePanel.java
index
194066e
..
41b46a7
100755
(executable)
--- a/
src/jalview/gui/ScalePanel.java
+++ b/
src/jalview/gui/ScalePanel.java
@@
-529,13
+529,14
@@
public class ScalePanel extends JPanel implements MouseMotionListener,
{
if (((i - refSp) % 10) == 0)
{
- iadj = av.getColumnSelection().adjustForHiddenColumns(i - 1);
if (refSeq == null)
{
+ iadj = av.getColumnSelection().adjustForHiddenColumns(i - 1) + 1;
string = String.valueOf(iadj);
}
else
{
+ iadj = av.getColumnSelection().adjustForHiddenColumns(i - 1);
refN = refSeq.findPosition(iadj);
// TODO show bounds if position is a gap
// - ie L--R -> "1L|2R" for