From fdf69ee4b5fcdf1717489c57faf425c76e8f47d0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 8 Apr 2016 15:43:31 +0100 Subject: [PATCH] JAL-2053 JAL-1551 javadoc and simpler code --- src/jalview/datamodel/ColumnSelection.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jalview/datamodel/ColumnSelection.java b/src/jalview/datamodel/ColumnSelection.java index c63b6cd..0d2d3bf 100644 --- a/src/jalview/datamodel/ColumnSelection.java +++ b/src/jalview/datamodel/ColumnSelection.java @@ -623,6 +623,10 @@ public class ColumnSelection /** * Use this method to determine where the next hiddenRegion starts + * + * @param hiddenRegion + * index of hidden region (counts from 0) + * @return column number in visible view */ public int findHiddenRegionPosition(int hiddenRegion) { @@ -642,7 +646,7 @@ public class ColumnSelection gaps += region[1] + 1 - region[0]; result = region[1] + 1; index++; - } while (index < hiddenRegion + 1); + } while (index <= hiddenRegion); result -= gaps; } -- 1.7.10.2