summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-08-25 12:40:15 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-08-25 16:36:39 +0200
commit772d9abb6006bb03b8bd783bbe95a54360ebc3a9 (patch)
treec9326776b82d72305cab11d62f5d1c36b595125d /sc
parent64474237cde14f9fde9e9bda3c635954c69cc795 (diff)
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.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/attrdlg/attrdlg.cxx2
1 files changed, 1 insertions, 1 deletions
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 ));