]> source.dussan.org Git - poi.git/commitdiff
partially undo change
authorPJ Fanning <fanningpj@apache.org>
Sat, 24 Jul 2021 08:27:49 +0000 (08:27 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 24 Jul 2021 08:27:49 +0000 (08:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891764 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRow.java

index d0aa2ff86751bdf35f03e5d681323aac4174a42b..3992d59139aef15373225ac14b2c4c70183cfa97 100644 (file)
@@ -34,7 +34,6 @@ import org.apache.poi.ss.usermodel.FormulaError;
 import org.apache.poi.ss.usermodel.Row;
 import org.apache.poi.ss.usermodel.helpers.RowShifter;
 import org.apache.poi.ss.util.CellRangeAddress;
-import org.apache.poi.ss.util.CellUtil;
 import org.apache.poi.util.Beta;
 import org.apache.poi.util.Internal;
 import org.apache.poi.xssf.model.StylesTable;
@@ -651,7 +650,8 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
             // srcRow is blank. Overwrite cells with blank values, blank styles, etc per cell copy policy
             for (Cell destCell : this) {
                 final XSSFCell srcCell = null;
-                CellUtil.copyCell(srcCell, destCell, policy);
+                // FIXME: remove type casting when copyCellFrom(Cell, CellCopyPolicy) is added to Cell interface
+                ((XSSFCell)destCell).copyCellFrom(srcCell, policy);
             }
 
             if (policy.isCopyMergedRegions()) {