[Libreoffice-commits] core.git: svx/source

Caolán McNamara caolanm at redhat.com
Tue Jun 20 10:46:43 UTC 2017


 svx/source/styles/CommonStylePreviewRenderer.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 35218bcb9c09107e73015d5eef0c4122c4884a0a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 20 11:44:47 2017 +0100

    bullet char style preview is unreadable, cause uses opensymbol
    
    Change-Id: I1bd0a0e85c9d956184680d7e15709b3a7b590c30
    Reviewed-on: https://gerrit.libreoffice.org/39009
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx
index 7de7eef58342..bb27770bcf75 100644
--- a/svx/source/styles/CommonStylePreviewRenderer.cxx
+++ b/svx/source/styles/CommonStylePreviewRenderer.cxx
@@ -134,6 +134,8 @@ bool CommonStylePreviewRenderer::recalculate()
     if ((pItem = pItemSet->GetItem(SID_ATTR_CHAR_FONT)) != nullptr)
     {
         const SvxFontItem* pFontItem = static_cast<const SvxFontItem*>(pItem);
+        if (IsStarSymbol(pFontItem->GetFamilyName()))
+            return false;
         pFont->SetFamilyName(pFontItem->GetFamilyName());
         pFont->SetStyleName(pFontItem->GetStyleName());
     }


More information about the Libreoffice-commits mailing list