{
result += cursor.getHiddenOffset(column);
- /*
- Iterator<int[]> it = hiddenColumns.iterator();
+
+ /*Iterator<int[]> it = hiddenColumns.iterator();
while (it.hasNext())
{
int[] region = it.next();
return -1;
}
- int index = getIndex();
- int hiddenCount = getHiddenSoFar();
+ int index = regionIndex;
+ int hiddenCount = hiddenSoFar;
if (index == hiddenColumns.size())
{
index = 0;
hiddenCount = 0;
}
- else if (column > lastColumn)
+ /*else if (column > lastColumn)
{
index = hiddenColumns.size();
// TODO resolve here - need full hidden count
- }
- else if (column > hiddenColumns.get(index)[1])
+ }*/
+ else if (column > hiddenColumns.get(index)[1]) // includes if column >
+ // lastColumn
{
// iterate from where we are now, if we're lucky we'll be close by
// (but still better than iterating from 0)
else if (index < hiddenColumns.size())
{
while ((index > 0)
- && (hiddenColumns.get(index)[1] > column + hiddenCount))
+ && (hiddenColumns.get(index - 1)[1] >= column + hiddenCount))
{
index--;
int[] region = hiddenColumns.get(index);