int cy = rootCc.getCellY(); if ((cx < 0 || cy < 0) && isRowInGridMode && rootCc.getSkip() == 0) { // 3.7.2: If skip, don't find an empty cell first. while (!isCellFree(cellXY[1], cellXY[0], spannedRects)) { if (Math.abs(increase(cellXY, 1)) >= wrap) wrap(cellXY, null); if (Math.abs(increase(cellXY, 1)) >= wrap) wrap(cellXY, null); } while (!isCellFree(cellXY[1], cellXY[0], spannedRects));