Skip to content

Commit af67738

Browse files
committed
Fixed Doughnut
1 parent 684c824 commit af67738

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php

+9-11
Original file line numberDiff line numberDiff line change
@@ -1247,9 +1247,7 @@ protected function writeTypeBar3D(XMLWriter $objWriter, Bar3D $subject, bool $in
12471247
}
12481248

12491249
/**
1250-
* Write Type Pie.
1251-
*
1252-
* @param XMLWriter $objWriter XML Writer
1250+
* Write Type Doughnut.
12531251
*/
12541252
protected function writeTypeDoughnut(XMLWriter $objWriter, Doughnut $subject, bool $includeSheet = false): void
12551253
{
@@ -1340,14 +1338,6 @@ protected function writeTypeDoughnut(XMLWriter $objWriter, Doughnut $subject, bo
13401338
$objWriter->endElement();
13411339
}
13421340

1343-
// c:dLbls\c:txPr
1344-
$objWriter->startElement('c:txPr');
1345-
$objWriter->writeElement('a:bodyPr', null);
1346-
$objWriter->writeElement('a:lstStyle', null);
1347-
1348-
// c:dLbls\c:txPr\a:p
1349-
$objWriter->startElement('a:p');
1350-
13511341
$this->writeElementWithValAttribute($objWriter, 'c:showLegendKey', $series->hasShowLegendKey() ? '1' : '0');
13521342
$this->writeElementWithValAttribute($objWriter, 'c:showVal', $series->hasShowValue() ? '1' : '0');
13531343
$this->writeElementWithValAttribute($objWriter, 'c:showCatName', $series->hasShowCategoryName() ? '1' : '0');
@@ -1364,6 +1354,14 @@ protected function writeTypeDoughnut(XMLWriter $objWriter, Doughnut $subject, bo
13641354
// c:dLbls\c:txPr\a:p
13651355
$objWriter->startElement('a:p');
13661356

1357+
// c:dLbls\c:txPr
1358+
$objWriter->startElement('c:txPr');
1359+
$objWriter->writeElement('a:bodyPr', null);
1360+
$objWriter->writeElement('a:lstStyle', null);
1361+
1362+
// c:dLbls\c:txPr\a:p
1363+
$objWriter->startElement('a:p');
1364+
13671365
// c:dLbls\c:txPr\a:p\a:pPr
13681366
$objWriter->startElement('a:pPr');
13691367

0 commit comments

Comments
 (0)