mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-25 14:56:04 +03:00
Bug fix: c:max and c:min elements must not be inside c:orientation elements. They shall be inside c:scaling elements. Otherwise they are ignored by Excel and Libreoffice
This commit is contained in:
parent
7fa160905b
commit
44918984a1
@ -540,8 +540,6 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa
|
|||||||
}
|
}
|
||||||
|
|
||||||
$objWriter->startElement('c:scaling');
|
$objWriter->startElement('c:scaling');
|
||||||
$objWriter->startElement('c:orientation');
|
|
||||||
$objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
|
|
||||||
|
|
||||||
if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) {
|
if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) {
|
||||||
$objWriter->startElement('c:max');
|
$objWriter->startElement('c:max');
|
||||||
@ -555,6 +553,10 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa
|
|||||||
$objWriter->endElement();
|
$objWriter->endElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$objWriter->startElement('c:orientation');
|
||||||
|
$objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
|
||||||
|
|
||||||
|
|
||||||
$objWriter->endElement();
|
$objWriter->endElement();
|
||||||
$objWriter->endElement();
|
$objWriter->endElement();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user