summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-11-01 18:55:53 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2023-11-02 10:48:01 +0100
commit755210c38dcb72a56aa7aacb9b52246a63dae687 (patch)
tree22bf1d5621d562d2ca142b62cd02f391ac8cfcd1
parenta1b0fc647d14dc36e9fe238d5bfc81ebcfa1d5dc (diff)
sw: PDF/UA export: produce Link SEs for RTL text
This is a SwBidiPortion containing a nested SwLineLayout containing SwLinePortions for the link or text, and only the SwBidiPortion had a tag helper, so add one for the inner portion too. (Apparently this never worked before.) Change-Id: I803191dafe101a42e4dbe1c0167411c2f1f76a2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158773 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--sw/source/core/text/pormulti.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx
index 07453a4b1fcb..67cd13af4d6d 100644
--- a/sw/source/core/text/pormulti.cxx
+++ b/sw/source/core/text/pormulti.cxx
@@ -1778,7 +1778,12 @@ void SwTextPainter::PaintMultiPortion( const SwRect &rPaint,
PaintMultiPortion( rPaint, static_cast<SwMultiPortion&>(*pPor), &rMulti );
}
else
+ {
+ Por_Info const por(*pPor, *this, 0);
+ SwTaggedPDFHelper const tag(nullptr, nullptr, &por, *GetInfo().GetOut());
+
pPor->Paint( GetInfo() );
+ }
bFirst &= !pPor->GetLen();
if( pNext || !pPor->IsMarginPortion() )