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
This commit is contained in:
Jason Height 2004-09-24 03:28:05 +00:00
parent ccee8a80af
commit abef70d455

View File

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