JAL-192 fix bounds when no hidden regions, and when sequence contained in hidden...
[jalview.git] / src / jalview / gui / ScalePanel.java
index e595e65..f266d36 100755 (executable)
@@ -502,8 +502,8 @@ public class ScalePanel extends JPanel implements MouseMotionListener,
       int[] refbounds = av.getColumnSelection()
               .locateVisibleBoundsOfSequence(refSeq);
 
-      refSp = refbounds[0] - 1;
-      refEp = refbounds[1] - 1;
+      refSp = refbounds[0];
+      refEp = refbounds[1];
       scalestartx = refSp + ((scalestartx - refSp) / 10) * 10;
     }