cui/source/dialogs/SpellDialog.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 3801c6ea7cf41a31173e2e96fea59ad8e0321e79 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Mar 27 22:27:52 2013 +0100 DBG_ASSERT -> SAL_WARN_IF (silence -Werror=unused-macros) Change-Id: Iac61bcae89e9a96c7b9b97be3fa60378acc89bd9 diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index dcae0d6..9e4afeb 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits