View | Details | Raw Unified | Return to bug 46266
Collapse All | Expand All

(-)src/java/org/apache/poi/hssf/usermodel/HSSFRow.java (-2 / +6 lines)
Lines 31-36 Link Here
31
 *
31
 *
32
 * Only rows that have cells should be added to a Sheet.
32
 * Only rows that have cells should be added to a Sheet.
33
 *
33
 *
34
 * BVPATCH: Fixed moveCell method.
35
 *
34
 * @author  Andrew C. Oliver (acoliver at apache dot org)
36
 * @author  Andrew C. Oliver (acoliver at apache dot org)
35
 * @author Glen Stampoultzis (glens at apache.org)
37
 * @author Glen Stampoultzis (glens at apache.org)
36
 */
38
 */
Lines 279-287 Link Here
279
        }
281
        }
280
282
281
        // Move the cell to the new position
283
        // Move the cell to the new position
282
        // (Don't remove the records though)
284
        // remove and add back the record as well
283
        removeCell(cell, false);
285
        removeCell(cell, true);
284
        cell.updateCellNum(newColumn);
286
        cell.updateCellNum(newColumn);
287
        sheet.getSheet().addValueRecord(cell.getRow().rowNum, cell.getCellValueRecord());
288
285
        addCell(cell);
289
        addCell(cell);
286
    }
290
    }
287
291

Return to bug 46266