From 3801c6ea7cf41a31173e2e96fea59ad8e0321e79 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 27 Mar 2013 22:27:52 +0100 Subject: DBG_ASSERT -> SAL_WARN_IF (silence -Werror=unused-macros) Change-Id: Iac61bcae89e9a96c7b9b97be3fa60378acc89bd9 --- cui/source/dialogs/SpellDialog.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cui/source') diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index dcae0d63ee21..9e4afeb144ff 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1387,7 +1387,9 @@ long SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt ) bool bIsErrorActive = (pErrorAttr && pErrorAttr->GetStart() == m_nErrorStart) || (pErrorAttrLeft && pErrorAttrLeft->GetStart() == m_nErrorStart); - DBG_ASSERT(nSelectionType != INVALID, "selection type not set!"); + SAL_WARN_IF( + nSelectionType == INVALID, "cui.dialogs", + "selection type not set"); const KeyCode& rKeyCode = rKeyEvt.GetKeyCode(); bool bDelete = rKeyCode.GetCode() == KEY_DELETE; -- cgit