diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java b/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java index 427779d2f4..31a17e0c0f 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java @@ -205,9 +205,9 @@ public final class HSSFRow implements Row, Comparable { * records too. */ protected void removeAllCells() { - for(int i=0; i { row.setFirstCol(colIx); } else if (colIx > row.getLastCol()) { row.setLastCol(colIx + 1); - } else { + } /*else { // added cell is within first and last cells - } + }*/ } // TODO - RowRecord column boundaries need to be updated for cell comments too return hcell; @@ -446,12 +446,11 @@ public final class HSSFRow implements Row, Comparable { @Override public int getPhysicalNumberOfCells() { - int count=0; - for(int i=0;i