// Burn off leading white pixels before anything else; if we start in the middle of\r
// a white run, it doesn't make sense to count its length, since we don't know if the\r
// white run continued to the left of the start point\r
- while (!luminanceRow.get(j - startX) && j < maxJ) {\r
+ while (j < maxJ && !luminanceRow.get(j - startX)) {\r
j++;\r
}\r
while (j < maxJ) {\r