From: Jim Procter Date: Wed, 27 Apr 2016 16:02:02 +0000 (+0100) Subject: JAL-192 fix off-by-one for alignment ruler with no reference X-Git-Tag: Release_2_10_0~235^2~2^2^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=902545551ef0f546be958444bed784dae65d69d2;p=jalview.git JAL-192 fix off-by-one for alignment ruler with no reference --- diff --git a/src/jalview/gui/ScalePanel.java b/src/jalview/gui/ScalePanel.java index 61f1b36..7c8a1d7 100755 --- a/src/jalview/gui/ScalePanel.java +++ b/src/jalview/gui/ScalePanel.java @@ -521,7 +521,7 @@ public class ScalePanel extends JPanel implements MouseMotionListener, iadj = av.getColumnSelection().adjustForHiddenColumns(i) - 1; if (refSeq == null) { - string = String.valueOf(iadj); + string = String.valueOf(iadj + 1); } else {