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:
parent
ccee8a80af
commit
abef70d455
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user