Related tdf#58434 - Treat ZWSP and WJ as hard space

U+200B ZERO WIDTH SPACE and U+2060 WORD JOINER are not highlighted
anymore if Formatting Aids > Non-breaking spaces is off

Change-Id: Id35fb725bbfa14683ceb31d2043848a66328b364
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155019
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index 715780f..7544868 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -1494,6 +1494,7 @@ void SwTextPaintInfo::DrawViewOpt( const SwLinePortion &rPor,
        {
            bDraw = PortionType::Footnote != nWhich || m_pFrame->IsFootnoteAllowed();
        }
        bDraw &= GetOpt().IsHardBlank();
        break;
    case PortionType::Bookmark:
        // no shading