Fixed bug in header, wherein all images were assigned to the first
header in a section. This resulted in a corrupt DOCX
This commit is contained in:
parent
9c11067720
commit
2187954b56
|
|
@ -249,7 +249,6 @@ abstract class AbstractContainer extends AbstractElement
|
|||
$rId = Media::addElement($elementDocPart, 'image', $src, $image);
|
||||
$image->setRelationId($rId);
|
||||
$this->addElement($image);
|
||||
|
||||
return $image;
|
||||
}
|
||||
|
||||
|
|
@ -413,7 +412,7 @@ abstract class AbstractContainer extends AbstractElement
|
|||
$docPart = $isCellTextrun ? $this->getDocPart() : $this->container;
|
||||
$docPartId = $isCellTextrun ? $this->getDocPartId() : $this->sectionId;
|
||||
$inHeaderFooter = ($docPart == 'header' || $docPart == 'footer');
|
||||
|
||||
$docPartId = $inHeaderFooter ? $this->getDocPartId() : $docPartId;
|
||||
return $inHeaderFooter ? $docPart . $docPartId : $docPart;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue