From 1eea36cf10d6749137d1cf65c7e6d63f2487b6cd Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 6 May 2016 14:02:25 +0100 Subject: [PATCH] JAL-192 patch off-by-one for pathological gap case JAL-2099 fix incorrect numbering with hidden-columns --- src/jalview/gui/ScalePanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/ScalePanel.java b/src/jalview/gui/ScalePanel.java index 194066e..41b46a7 100755 --- 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 -- 1.7.10.2