Still add text if link missing
If link target doesn't exist, still add the text anyway.
This commit is contained in:
parent
0db21ae115
commit
b1661af71a
|
|
@ -297,6 +297,8 @@ abstract class AbstractPart
|
||||||
$target = $this->getMediaTarget($docPart, $rId);
|
$target = $this->getMediaTarget($docPart, $rId);
|
||||||
if (!is_null($target)) {
|
if (!is_null($target)) {
|
||||||
$parent->addLink($target, $textContent, $fontStyle, $paragraphStyle);
|
$parent->addLink($target, $textContent, $fontStyle, $paragraphStyle);
|
||||||
|
} else {
|
||||||
|
$parent->addText($textContent, $fontStyle, $paragraphStyle);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/** @var AbstractElement $element */
|
/** @var AbstractElement $element */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue