mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 05:16:06 +03:00
Merge pull request #869 from vitalyrepin/1.8
Bug fix: c:max and c:min elements shall NOT be inside c:orientation elements
This commit is contained in:
commit
1a237573f9
@ -540,8 +540,6 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa
|
||||
}
|
||||
|
||||
$objWriter->startElement('c:scaling');
|
||||
$objWriter->startElement('c:orientation');
|
||||
$objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
|
||||
|
||||
if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) {
|
||||
$objWriter->startElement('c:max');
|
||||
@ -555,6 +553,10 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa
|
||||
$objWriter->endElement();
|
||||
}
|
||||
|
||||
$objWriter->startElement('c:orientation');
|
||||
$objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
|
||||
|
||||
|
||||
$objWriter->endElement();
|
||||
$objWriter->endElement();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user