Merge pull request #1537 from isometriks/patch-1

[WIP] Still add text if link missing
This commit is contained in:
troosan 2018-12-23 21:11:30 +01:00 committed by GitHub
commit e6496bf411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 */