From: Jim Procter Date: Fri, 6 May 2016 13:02:25 +0000 (+0100) Subject: JAL-192 patch off-by-one for pathological gap case X-Git-Tag: Release_2_10_0~227^2~2^2~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1eea36cf10d6749137d1cf65c7e6d63f2487b6cd;p=jalview.git JAL-192 patch off-by-one for pathological gap case JAL-2099 fix incorrect numbering with hidden-columns --- 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