// column is before or in the previous region
if ((index > 0) && (hiddenColumns.get(index - 1)[1] >= column))
{
- while ((index > 0) && (hiddenColumns.get(index)[1] > column))
+ while ((index > 0) && (hiddenColumns.get(index - 1)[1] >= column))
{
index--;
int[] region = hiddenColumns.get(index);
regionIndex = cursor.findRegionForColumn(0);
assertEquals(0, regionIndex);
+
+ hidden.add(new int[] { 138, 155 });
+ cursor.resetCursor(hidden);
+
+ regionIndex = cursor.findRegionForColumn(160);
+ assertEquals(3, regionIndex);
+
+ regionIndex = cursor.findRegionForColumn(100);
+ assertEquals(1, regionIndex);
}
/**