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

--- Comment #8 from Julien Nabet <[email protected]> ---
I gave a try with this patch:
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 58b412f1e822..04af6deae0b6 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -124,15 +124,9 @@ void setFont(const SvxFont& rNewFont, SvxFont& rImplFont)
  */
 bool CleanAndCheckEmpty(OUString& rText)
 {
-    bool bEmpty = true;
-    for (sal_Int32 i = 0; i < rText.getLength(); ++i)
-    {
-        if (0xa == rText[i] || 0xd == rText[i])
-            rText = rText.replaceAt(i, 1, u" ");
-        else
-            bEmpty = false;
-    }
-    return bEmpty;
+    rText = rText.replaceAll("\xa", u" ");
+    rText = rText.replaceAll("\xd", u" ");
+    return rText.isEmpty();
 }
 } // end anonymous namespace


and I didn't wait for 30 secs to have the results

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

Reply via email to