From 755210c38dcb72a56aa7aacb9b52246a63dae687 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 1 Nov 2023 18:55:53 +0100 Subject: 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 --- sw/source/core/text/pormulti.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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(*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() ) -- cgit