mirror of https://github.com/apache/poi.git
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
b4ba64b1e1
commit
ca18b2eacd
|
@ -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