equal
deleted
inserted
replaced
342 leadRow = maxY; |
342 leadRow = maxY; |
343 leadColumn = maxX + 1; |
343 leadColumn = maxX + 1; |
344 } |
344 } |
345 |
345 |
346 // In cases where the lead is not within the search range, |
346 // In cases where the lead is not within the search range, |
347 // we need to bring it within one cell for the the search |
347 // we need to bring it within one cell for the search |
348 // to work properly. Check these here. |
348 // to work properly. Check these here. |
349 leadRow = Math.min(Math.max(leadRow, minY - 1), maxY + 1); |
349 leadRow = Math.min(Math.max(leadRow, minY - 1), maxY + 1); |
350 leadColumn = Math.min(Math.max(leadColumn, minX - 1), maxX + 1); |
350 leadColumn = Math.min(Math.max(leadColumn, minX - 1), maxX + 1); |
351 |
351 |
352 // find the next position, possibly looping until it is selected |
352 // find the next position, possibly looping until it is selected |