Bugfix: (seltzlab) Fix to excel2007 Chart Writer when a $plotSeriesValues is empty
This commit is contained in:
parent
b2aea4ee09
commit
e2a2fdb335
|
@ -953,14 +953,17 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa
|
|||
$objWriter->writeAttribute('val', $plotSeriesValues->getPointCount() );
|
||||
$objWriter->endElement();
|
||||
|
||||
foreach($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) {
|
||||
$objWriter->startElement('c:pt');
|
||||
$objWriter->writeAttribute('idx', $plotSeriesKey );
|
||||
$dataValues = $plotSeriesValues->getDataValues();
|
||||
if (!empty($dataValues)) {
|
||||
foreach($dataValues as $plotSeriesKey => $plotSeriesValue) {
|
||||
$objWriter->startElement('c:pt');
|
||||
$objWriter->writeAttribute('idx', $plotSeriesKey );
|
||||
|
||||
$objWriter->startElement('c:v');
|
||||
$objWriter->writeRawData( $plotSeriesValue );
|
||||
$objWriter->startElement('c:v');
|
||||
$objWriter->writeRawData( $plotSeriesValue );
|
||||
$objWriter->endElement();
|
||||
$objWriter->endElement();
|
||||
$objWriter->endElement();
|
||||
}
|
||||
}
|
||||
|
||||
$objWriter->endElement();
|
||||
|
|
|
@ -37,6 +37,7 @@ Fixed in develop branch:
|
|||
- Bugfix: (MBaker) Work items 15799 and 18278 - Background color cell is always black when editing cell
|
||||
- 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
|
||||
|
||||
|
||||
2012-05-19 (v1.7.7):
|
||||
|
|
Loading…
Reference in New Issue