Fixed a bug, that when a second header was added to a section, all
images added to the second header were assigned to the first header, resulting in at least a corrupted DOCX.
This commit is contained in:
parent
ce85cc5497
commit
11b3941103
|
|
@ -355,7 +355,7 @@ abstract class AbstractContainer extends AbstractElement
|
||||||
$docPart = $isCellTextrun ? $this->getDocPart() : $this->container;
|
$docPart = $isCellTextrun ? $this->getDocPart() : $this->container;
|
||||||
$docPartId = $isCellTextrun ? $this->getDocPartId() : $this->sectionId;
|
$docPartId = $isCellTextrun ? $this->getDocPartId() : $this->sectionId;
|
||||||
$inHeaderFooter = ($docPart == 'header' || $docPart == 'footer');
|
$inHeaderFooter = ($docPart == 'header' || $docPart == 'footer');
|
||||||
|
$docPartId = $inHeaderFooter ? $this->getDocPartId() : $docPartId;
|
||||||
return $inHeaderFooter ? $docPart . $docPartId : $docPart;
|
return $inHeaderFooter ? $docPart . $docPartId : $docPart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue