JAL-192 patch for off-by one and pathological case (hide inserted regions + set refer...
[jalview.git] / src / jalview / gui / ScalePanel.java
index aedb157..194066e 100755 (executable)
@@ -529,10 +529,10 @@ public class ScalePanel extends JPanel implements MouseMotionListener,
     {
       if (((i - refSp) % 10) == 0)
       {
-        iadj = av.getColumnSelection().adjustForHiddenColumns(i) - 1;
+        iadj = av.getColumnSelection().adjustForHiddenColumns(i - 1);
         if (refSeq == null)
         {
-          string = String.valueOf(iadj + 1);
+          string = String.valueOf(iadj);
         }
         else
         {