Skip to content

Commit 8e4ebd9

Browse files
committed
Final Tweak (I Think)
1 parent f3e2eba commit 8e4ebd9

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed
-272 Bytes
Binary file not shown.

src/PhpSpreadsheet/Writer/Xlsx/StringTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private function writeChartTextColor(XMLWriter $objWriter, ?ChartColor $underlin
306306
$objWriter->writeAttribute('val', $value);
307307
$alpha = $underlineColor->getAlpha();
308308
if (is_numeric($alpha)) {
309-
$objWriter->startElement('a:alpha');
309+
$objWriter->startElement($prefix . 'alpha');
310310
$objWriter->writeAttribute('val', ChartColor::alphaToXml((int) $alpha));
311311
$objWriter->endElement();
312312
}

tests/PhpSpreadsheetTests/Chart/Charts32ScatterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public function testScatter3(): void
262262
self::assertNotNull($chartColor);
263263
self::assertSame('000000', $chartColor->getValue());
264264
self::assertSame('srgbClr', $chartColor->getType());
265+
self::assertSame(50, $chartColor->getAlpha());
265266

266267
$plotArea = $chart->getPlotArea();
267268
self::assertNotNull($plotArea);

0 commit comments

Comments
 (0)