for (int i = 0; i < components.length; i++) {
RadComponent[] rowComponents = components[i];
RadComponent cellComponent = rowComponents[column];
if (cellComponent != null) {
if (cellComponent == rowComponents[column + 1]) {
<BUG>RadGridLayoutComponent.setSpan(cellComponent, RadGridLayoutComponent.getSpan(cellComponent, false) + 1, false);
</BUG>
}
while (i + 1 < components.length && cellComponent == components[i + 1][column]) {
i++;

for (int i = 0; i < components.length; i++) {
RadComponent[] rowComponents = components[i];
RadComponent cellComponent = rowComponents[column];
if (cellComponent != null) {
if (cellComponent == rowComponents[column + 1]) {
RadGridLayoutComponent.setSpan(cellComponent, RadGridLayoutComponent.getSpan(cellComponent, false) + inc, false);
}
while (i + 1 < components.length && cellComponent == components[i + 1][column]) {
i++;
