mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-10 10:06:30 +00:00
Fix count of drawing
This commit is contained in:
@@ -335,7 +335,7 @@ class Xlsx extends BaseWriter
|
||||
if ($this->spreadSheet->hasInCellDrawings()) {
|
||||
$richDataDrawing = new RichDataDrawing();
|
||||
$richDataFiles = $richDataDrawing->generateFiles($this->spreadSheet);
|
||||
$richDataCount = count($richDataFiles);
|
||||
$richDataCount = count($richDataDrawing->getDrawings());
|
||||
|
||||
// Add all Rich Data files to ZIP
|
||||
foreach ($richDataFiles as $path => $content) {
|
||||
|
||||
@@ -51,6 +51,14 @@ class RichDataDrawing
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Drawing[]
|
||||
*/
|
||||
public function getDrawings(): array
|
||||
{
|
||||
return $this->drawings;
|
||||
}
|
||||
|
||||
private function writeRdrichvalueXML(): string
|
||||
{
|
||||
$xml = new XMLWriter(XMLWriter::STORAGE_MEMORY);
|
||||
|
||||
Reference in New Issue
Block a user