JAL-2674 fix up interface of locateVisibleBoundsOfSequence
[jalview.git] / src / jalview / renderer / ScaleRenderer.java
index 9fec256..d310705 100644 (file)
@@ -77,8 +77,8 @@ public class ScaleRenderer
               .locateVisibleBoundsOfSequence(refSeq);
 
       refSp = refbounds[0];
-      refStartI = refbounds[4];
-      refEndI = refbounds[5];
+      refStartI = refbounds[1];
+      refEndI = refbounds[2];
       scalestartx = refSp + ((scalestartx - refSp) / 10) * 10;
     }
 
@@ -86,7 +86,7 @@ public class ScaleRenderer
     {
       scalestartx += 5;
     }
-    List<ScaleMark> marks = new ArrayList<ScaleMark>();
+    List<ScaleMark> marks = new ArrayList<>();
     String string;
     int refN, iadj;
     // todo: add a 'reference origin column' to set column number relative to