sc/source/ui/attrdlg/attrdlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 772d9abb6006bb03b8bd783bbe95a54360ebc3a9
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Aug 25 12:40:15 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Aug 25 16:36:39 2023 +0200

    downgrade from assert to SAL_WARN
    
    Change-Id: I78130d438fb9da60e929d7b6bad99bb6ec3d3e30
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156095
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/ui/attrdlg/attrdlg.cxx b/sc/source/ui/attrdlg/attrdlg.cxx
index e09a69b5c13f..7bd79468d27d 100644
--- a/sc/source/ui/attrdlg/attrdlg.cxx
+++ b/sc/source/ui/attrdlg/attrdlg.cxx
@@ -89,7 +89,7 @@ void ScAttrDlg::PageCreated(const OUString& rPageId, 
SfxTabPage& rTabPage)
     else if (rPageId == "font" && pDocSh)
     {
         const SfxPoolItem* pInfoItem = pDocSh->GetItem( SID_ATTR_CHAR_FONTLIST 
);
-        assert(pInfoItem && "FontListItem  not found :-(");
+        SAL_WARN_IF(!pInfoItem, "sc.ui", "we should have a FontListItem 
normally here");
         if (pInfoItem)
         {
             aSet.Put (SvxFontListItem(static_cast<const 
SvxFontListItem*>(pInfoItem)->GetFontList(), SID_ATTR_CHAR_FONTLIST ));

Reply via email to