mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-24 04:51:03 +00:00
Fix to clone worksheet
This commit is contained in:
@@ -96,7 +96,7 @@ class PHPExcel_CachedObjectStorage_Memory extends PHPExcel_CachedObjectStorage_C
|
||||
$newCollection = array();
|
||||
foreach($this->_cellCache as $k => &$cell) {
|
||||
$newCollection[$k] = clone $cell;
|
||||
$newCollection[$k]->attach($parent);
|
||||
$newCollection[$k]->attach($this);
|
||||
}
|
||||
|
||||
$this->_cellCache = $newCollection;
|
||||
|
||||
Reference in New Issue
Block a user