aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2015-11-24 08:52:45 +0000
committerJaven O'Neal <onealj@apache.org>2015-11-24 08:52:45 +0000
commitd84be50d5492dbf74c576993f875c8b5fd1be4f4 (patch)
treebd46c280f59846a5cea35c9dcf54facf1bdf258c /src/ooxml
parentfc4b3fc08f2a9264883f4ea1751186495e1cb370 (diff)
downloadpoi-d84be50d5492dbf74c576993f875c8b5fd1be4f4.tar.gz
poi-d84be50d5492dbf74c576993f875c8b5fd1be4f4.zip
bug 58348: use copy constructor design pattern rather than cloneable pattern for CellCopyPolicy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716074 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
index 379a675bba..fd3674b3e0 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
@@ -2705,7 +2705,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
// FIXME: is special behavior needed if srcRows and destRows belong to the same sheets and the regions overlap?
- final CellCopyPolicy options = policy.clone();
+ final CellCopyPolicy options = new CellCopyPolicy(policy);
// avoid O(N^2) performance scanning through all regions for each row
// merged regions will be copied after all the rows have been copied
options.setCopyMergedRegions(false);