Merge pull request #1537 from isometriks/patch-1
[WIP] Still add text if link missing
This commit is contained in:
commit
e6496bf411
|
|
@ -297,6 +297,8 @@ abstract class AbstractPart
|
|||
$target = $this->getMediaTarget($docPart, $rId);
|
||||
if (!is_null($target)) {
|
||||
$parent->addLink($target, $textContent, $fontStyle, $paragraphStyle);
|
||||
} else {
|
||||
$parent->addText($textContent, $fontStyle, $paragraphStyle);
|
||||
}
|
||||
} else {
|
||||
/** @var AbstractElement $element */
|
||||
|
|
|
|||
Loading…
Reference in New Issue