From abef70d455d2d3b32a135e0c856656b6a1f7eaa3 Mon Sep 17 00:00:00 2001 From: Jason Height Date: Fri, 24 Sep 2004 03:28:05 +0000 Subject: [PATCH] Fix for Bugzilla Bug 31092 Slightly different to bug proposal, but fixed none the less. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353603 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/record/ObjRecord.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java/org/apache/poi/hssf/record/ObjRecord.java b/src/java/org/apache/poi/hssf/record/ObjRecord.java index 2380c0803..e5a3aa0b0 100644 --- a/src/java/org/apache/poi/hssf/record/ObjRecord.java +++ b/src/java/org/apache/poi/hssf/record/ObjRecord.java @@ -176,10 +176,9 @@ public class ObjRecord public Object clone() { ObjRecord rec = new ObjRecord(); - rec.subrecords = new ArrayList(); for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); ) - subrecords.add(( (Record) iterator.next() ).clone()); + rec.addSubRecord(( (Record) iterator.next() ).clone()); return rec; }