Ensure that chart worksheet is correctly set when adding chart to a

worksheet
This commit is contained in:
Mark Baker 2012-07-26 20:04:52 +01:00
parent 8e41c70d41
commit b871674f18
2 changed files with 2 additions and 0 deletions

View File

@ -525,6 +525,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function addChart(PHPExcel_Chart $pChart = null, $iChartIndex = null)
{
$pChart->setWorksheet($this);
if (is_null($iChartIndex)) {
$this->_chartCollection[] = $pChart;
} else {

View File

@ -89,6 +89,7 @@ Fixed in develop branch:
- Bugfix: (MBaker) Work items 15905 and 18183 - Allow "no impact" to formats on Conditional Formatting
- Bugfix: (wackonline) OOCalc Reader fix for NULL cells
- Bugfix: (seltzlab) Fix to excel2007 Chart Writer when a $plotSeriesValues is empty
- Bugfix: (MBaker) Various fixes to Chart handling
- Bugfix: (MBaker) Work item 18370 - Error loading xlsx file with column breaks
- Bugfix: (MBaker) OOCalc Reader now handles percentage and currency data types
- Bugfix: (MBaker) OOCalc Reader modified to process number-rows-repeated