View | Details | Raw Unified | Return to bug 49529
Collapse All | Expand All

(-)src/java/org/apache/poi/hssf/model/InternalSheet.java (+7 lines)
Lines 386-391 Link Here
386
                ((RecordAggregate) rb).visitContainedRecords(new RecordCloner(clonedRecords));
386
                ((RecordAggregate) rb).visitContainedRecords(new RecordCloner(clonedRecords));
387
                continue;
387
                continue;
388
            }
388
            }
389
            if (rb instanceof EscherAggregate){
390
//                EscherAggregate is used only as a container for SODRAWING and OBJ record combinations
391
//                So, if the container is empty, there are no reason to clone this record
392
                if (0 == rb.getRecordSize()){
393
                    continue;
394
                }
395
            }
389
            Record rec = (Record) ((Record) rb).clone();
396
            Record rec = (Record) ((Record) rb).clone();
390
            clonedRecords.add(rec);
397
            clonedRecords.add(rec);
391
        }
398
        }

Return to bug 49529