Fix to clone worksheet

This commit is contained in:
Mark Baker
2013-06-03 22:28:32 +01:00
parent 88751b3e75
commit aeec8ef23c
3 changed files with 120 additions and 1 deletions
@@ -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;