summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 10:59:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 11:47:30 +0200
commit8771f48512ed19197c17506f522578f43b092b21 (patch)
tree24fe564a5d4609d1384db41de3398c62d0a7a0e8 /sw/source/core
parente4cf357a2e5d6506e4f9ff8d03edb53b699967f6 (diff)
quieten down this warning
Change-Id: I92c27cd332e20aa4c7bc208b85b571e99668e6dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116568 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/txtnode/txtedt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 19fcadedbe4e..6e64a06c570d 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -2228,7 +2228,7 @@ SwWrongList const* SwTextNode::GetGrammarCheck() const
void SwTextNode::SetSmartTags( std::unique_ptr<SwWrongList> pNew )
{
- OSL_ENSURE( SwSmartTagMgr::Get().IsSmartTagsEnabled(),
+ OSL_ENSURE( !pNew || SwSmartTagMgr::Get().IsSmartTagsEnabled(),
"Weird - we have a smart tag list without any recognizers?" );
if ( m_pParaIdleData_Impl )