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

New commits:
commit a9e23d1dcd361d95e046ab2d521ee55df9a77747
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Tue Jul 9 12:53:03 2024 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Wed Jul 10 13:47:09 2024 +0200

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

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