From fccbd1211ca5c620482591e7916f0f262d9f86bc Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Sun, 1 Nov 2020 13:32:03 +0100 Subject: move UpdateAttr sanity check to DBG_UTIL Change-Id: I9a6fd1ef8ea704a0ea3f8182d06cbbe938fd1937 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105137 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen --- sw/source/core/docnode/node.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx index abfc0d13e827..c13ffe5620ed 100644 --- a/sw/source/core/docnode/node.cxx +++ b/sw/source/core/docnode/node.cxx @@ -69,7 +69,9 @@ #include #include #include +#ifdef DBG_UTIL #include +#endif using namespace ::com::sun::star::i18n; @@ -1169,11 +1171,13 @@ void SwContentNode::SwClientNotify( const SwModify&, const SfxHint& rHint) // This makes the crude "WhichId" type divert from the true type, which is bad. // Thus we are asserting here, but falling back to an proper // hint instead. so that we at least will not spread such poison further. +#ifdef DBG_UTIL if(pLegacyHint->m_pNew != pLegacyHint->m_pOld) { auto pBT = sal::backtrace_get(20); SAL_WARN("sw.core", "UpdateAttr not matching! " << sal::backtrace_to_string(pBT.get())); } +#endif assert(pLegacyHint->m_pNew == pLegacyHint->m_pOld); assert(dynamic_cast(pLegacyHint->m_pNew)); const SwUpdateAttr aFallbackHint(0,0,0); -- cgit