sw/source/core/text/inftxt.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 78a8e3a0b3910d291a0144c7c57c09b31ba3255f
Author:     Heiko Tietze <[email protected]>
AuthorDate: Fri Feb 27 09:53:31 2026 +0100
Commit:     Heiko Tietze <[email protected]>
CommitDate: Sat Feb 28 09:47:08 2026 +0100

    Resolves tdf#165810 - Show Soft Hyphen and Spaces independently from NPC
    
    Previously the patch it was required to check the option under
    Formatting Aids AND to enable non-printable characters. Now the latter
    is not needed anymore. If the option under Formatting Aids is unchecked,
    the ° symbol wont be shown if NPC is on.
    
    Change-Id: Ib310691f39ec974d57516506f5992f8e826bb033
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200568
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <[email protected]>

diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index 91d943bfc17a..fd4670e909f7 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -1550,12 +1550,10 @@ void SwTextPaintInfo::DrawViewOpt( const SwLinePortion 
&rPor,
                 bDraw = GetOpt().IsTab();
             break;
         case PortionType::SoftHyphen:
-            if ( GetOpt().IsViewMetaChars() )
-                bDraw = GetOpt().IsSoftHyph();
+            bDraw = GetOpt().IsSoftHyph();
             break;
         case PortionType::Blank:
-            if ( GetOpt().IsViewMetaChars() )
-                bDraw = GetOpt().IsHardBlank();
+            bDraw = GetOpt().IsHardBlank();
             break;
         case PortionType::ControlChar:
             if ( GetOpt().IsViewMetaChars() )

Reply via email to