JAL-192 fix off-by-one for alignment ruler with no reference
authorJim Procter <jprocter@issues.jalview.org>
Wed, 27 Apr 2016 16:02:02 +0000 (17:02 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 27 Apr 2016 16:02:02 +0000 (17:02 +0100)
src/jalview/gui/ScalePanel.java

index 61f1b36..7c8a1d7 100755 (executable)
@@ -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
         {