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; }