int hideEnd;
int last = start;
- Iterator<int[]> regions = hidden.getBoundedIterator(start, end, true);
+ Iterator<int[]> regions = hidden.getBoundedIterator(start, end);
while (regions.hasNext())
{
region = regions.next();
hideStart = region[0];
hideEnd = region[1];
- // just move on if hideEnd is before last
- if (hideEnd < last)
- {
- continue;
- }
- // exit if next region is after end
- if (hideStart > end)
- {
- break;
- }
-
// truncate region at start if last falls in region
if ((hideStart < last) && (hideEnd >= last))
{