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 <heiko.tietze@documentfoundation.org>
This commit is contained in:
Heiko Tietze
2026-02-28 09:47:08 +01:00
committed by Heiko Tietze
parent c60458d60e
commit 78a8e3a0b3
+2 -4
View File
@@ -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() )