https://bugs.documentfoundation.org/show_bug.cgi?id=171555

--- Comment #7 from Patrick (volunteer) <[email protected]> ---
Created attachment 208333
  --> https://bugs.documentfoundation.org/attachment.cgi?id=208333&action=edit
Sample file for reproducing the bug

Adding some debugging info. The attached file reproduces the bug in my local
master build and I have found that reverting the following portions of commit
e3c068cb190e6cf04a49f9984f984d5ef72f9d9a stops the bug from occurring. Still,
it seems weird to me that a font fallback (which is done way down in the native
macOS code) fails with commit e3c068cb190e6cf04a49f9984f984d5ef72f9d9a (which
is way up in the Writer code):

diff --git a/sw/source/core/text/porexp.cxx b/sw/source/core/text/porexp.cxx
index eb6dd2719fe6..4a9bc7b60e16 100644
--- a/sw/source/core/text/porexp.cxx
+++ b/sw/source/core/text/porexp.cxx
@@ -220,7 +220,7 @@ void SwBlankPortion::Paint( const SwTextPaintInfo &rInf )
const
     // Draw field shade (can be disabled individually)
     if (!m_bMulti) // No gray background for multiportion brackets
         rInf.DrawViewOpt(*this, PortionType::Blank);
-    SwTextPortion::Paint(rInf);
+    SwExpandPortion::Paint(rInf);

     if (rInf.GetOpt().IsViewMetaChars() && rInf.GetOpt().IsHardBlank())
     {
diff --git a/sw/source/core/text/porexp.hxx b/sw/source/core/text/porexp.hxx
index 22b1347f78c3..807fcf9cdb5c 100644
--- a/sw/source/core/text/porexp.hxx
+++ b/sw/source/core/text/porexp.hxx
@@ -39,7 +39,7 @@ public:
 };

 /// Non-breaking space or non-breaking hyphen.
-class SwBlankPortion final : public SwTextPortion
+class SwBlankPortion final : public SwExpandPortion
 {
     sal_Unicode m_cChar;
     bool m_bMulti;        // For multiportion brackets

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to