From: Jim Procter Date: Fri, 8 Apr 2016 14:43:31 +0000 (+0100) Subject: JAL-2053 JAL-1551 javadoc and simpler code X-Git-Tag: Release_2_10_0~268^2^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fdf69ee4b5fcdf1717489c57faf425c76e8f47d0;p=jalview.git JAL-2053 JAL-1551 javadoc and simpler code --- 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; }