From 5e27d037bcb3ad3a33440c678e5fe844f4fab1e1 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Fri, 28 Jan 2011 23:09:02 +0000 Subject: [PATCH] Bugfix: Work item 14980 - Images not getting copyied with the ->clone function git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@67525 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Worksheet.php | 3 +++ changelog.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/Classes/PHPExcel/Worksheet.php b/Classes/PHPExcel/Worksheet.php index f0e93a7e..cdcfb684 100644 --- a/Classes/PHPExcel/Worksheet.php +++ b/Classes/PHPExcel/Worksheet.php @@ -2558,6 +2558,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable $newCollection = clone $this->_cellCollection; $newCollection->copyCellCollection($this); $this->_cellCollection = $newCollection; + } elseif ($key == '_drawingCollection') { + $newCollection = clone $this->_drawingCollection; + $this->_drawingCollection = $newCollection; } else { $this->{$key} = unserialize(serialize($val)); } diff --git a/changelog.txt b/changelog.txt index c5123b68..969d4e9d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -50,6 +50,7 @@ Fixed in SVN: - Bugfix: (MBaker) Work item 15094 - Merge cells 'un-merge' when using an existing spreadsheet - Bugfix: (MBaker) Work item 15129 - Worksheet fromArray() only working with 2-D arrays - Bugfix: (MBaker) Work item 15172 - rangeToarray function modified for non-existent cells +- Bugfix: (MBaker) Work item 14980 - Images not getting copyied with the ->clone function - General: (MBaker) Improved performance (speed), for building the Shared Strings table in the Excel2007 Writer.