diff options
author | László Németh <nemeth@numbertext.org> | 2024-06-28 18:43:25 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2024-06-29 23:49:34 +0200 |
commit | b0b691aa32719aa0d41bc0f72480cc455bc414ec (patch) | |
tree | d2756dd145fdad0e4c0bdac5ba2f20000d452d07 /sw | |
parent | e6b974fd699dcef28a7c26a96c74f3b9a8df9cab (diff) |
tdf#161563 sw: fix invisible light gray underline for No Break
Light gray underline visualization depended on IsShowHiddenChar()
instead of the correct IsViewMetaChar() (Show Formatting Marks).
Follow-up to commit 2f0c7d5691acd4010443856788a54b0abc03098b
"tdf#161563 tdf#161565 sw: add No Break to word context menu &
visualize" and commit 41916d9fb045654fa19b4eac90a3099550a890f7
"tdf#161563 sw: show "No Break" context menu only on a whole word".
Change-Id: I3d10011962732ab3730e5f833e95252e9fe6bfee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169721
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/atrstck.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/atrstck.cxx b/sw/source/core/text/atrstck.cxx index eafce865e9ed..85689a2c82a8 100644 --- a/sw/source/core/text/atrstck.cxx +++ b/sw/source/core/text/atrstck.cxx @@ -696,7 +696,7 @@ void SwAttrHandler::FontChg(const SfxPoolItem& rItem, SwFont& rFnt, bool bPush ) break; case RES_CHRATR_NOHYPHEN : if ( m_pShell && m_pShell->GetWin() && - m_pShell->GetViewOptions()->IsShowHiddenChar() ) + m_pShell->GetViewOptions()->IsViewMetaChars() ) { if ( rItem.StaticWhichCast(RES_CHRATR_NOHYPHEN).GetValue() ) { |