summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-27 22:27:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-27 22:27:52 +0100
commit3801c6ea7cf41a31173e2e96fea59ad8e0321e79 (patch)
tree505d0325172cbd7d6f4b43731836f302daa8002e /cui
parenta1554c121f5f810c77b70ece3d11522a48091d0f (diff)
DBG_ASSERT -> SAL_WARN_IF (silence -Werror=unused-macros)
Change-Id: Iac61bcae89e9a96c7b9b97be3fa60378acc89bd9
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx4
1 files changed, 3 insertions, 1 deletions
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;