sw/source/core/text/txthyph.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2968bd73276e9bb62656a5277774926bf7fbd51a
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Tue Jul 9 12:53:03 2024 +0200
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Sat Jul 13 20:13:28 2024 +0200

    Resolves tdf#161421 - Draw soft hyphen in black on PDF export
    
    Change-Id: I69a19a0919fd31f8ea2fee962e994d61873e51c1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170227
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx
index bf8751d6cea5..8f419984323a 100644
--- a/sw/source/core/text/txthyph.cxx
+++ b/sw/source/core/text/txthyph.cxx
@@ -436,7 +436,8 @@ void SwSoftHyphPortion::Paint( const SwTextPaintInfo &rInf 
) const
         rInf.DrawViewOpt( *this, PortionType::SoftHyphen );
         SwExpandPortion::Paint( rInf );
 
-        if (rInf.GetOpt().IsViewMetaChars() && !rInf.GetOpt().IsPrinting())
+        if (rInf.GetOpt().IsViewMetaChars() && !rInf.GetOpt().IsPrinting()
+            && !rInf.GetOpt().IsPDFExport())
         {
             OUString aMarker = u"-"_ustr;
             SwTextPaintInfo aInf(rInf, &aMarker);

Reply via email to