Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 1a23757

Browse files
author
Mark Baker
committed
Merge pull request #869 from vitalyrepin/1.8
Bug fix: c:max and c:min elements shall NOT be inside c:orientation elements
2 parents 7fa1609 + 4491898 commit 1a23757

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Classes/PHPExcel/Writer/Excel2007/Chart.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,6 @@ private function writeValueAxis($objWriter, PHPExcel_Chart_PlotArea $plotArea, $
540540
}
541541

542542
$objWriter->startElement('c:scaling');
543-
$objWriter->startElement('c:orientation');
544-
$objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
545543

546544
if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) {
547545
$objWriter->startElement('c:max');
@@ -555,6 +553,10 @@ private function writeValueAxis($objWriter, PHPExcel_Chart_PlotArea $plotArea, $
555553
$objWriter->endElement();
556554
}
557555

556+
$objWriter->startElement('c:orientation');
557+
$objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
558+
559+
558560
$objWriter->endElement();
559561
$objWriter->endElement();
560562

0 commit comments

Comments
 (0)