diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/inc/wrong.hxx | 3 | ||||
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/core/inc/wrong.hxx b/sw/source/core/inc/wrong.hxx index f7e22615578e..3fe7cb7bf75b 100644 --- a/sw/source/core/inc/wrong.hxx +++ b/sw/source/core/inc/wrong.hxx @@ -378,9 +378,6 @@ public: const SwWrongArea* GetWrongElement(TextFrameIndex nStart); bool LooksUseful() { return m_pMergedPara || m_pWrongList; } - bool MergedOrSame(SwWrongList const*const pList) const { - return m_pMergedPara || m_pWrongList == pList; - } }; class WrongListIteratorCounter diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 4fe1bf96e9bb..d94fd1cca717 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -1781,7 +1781,6 @@ SwTextSlot::SwTextSlot( { std::pair<SwTextNode const*, sal_Int32> pos(pNew->GetTextFrame()->MapViewToModel(nIdx)); SwWrongList const*const pSmartTags(pos.first->GetSmartTags()); - assert(m_pOldSmartTagList->MergedOrSame(pSmartTags)); if (pSmartTags) { const sal_uInt16 nPos = pSmartTags->GetWrongPos(pos.second); @@ -1810,7 +1809,6 @@ SwTextSlot::SwTextSlot( { std::pair<SwTextNode const*, sal_Int32> pos(pNew->GetTextFrame()->MapViewToModel(nIdx)); SwWrongList const*const pGrammar(pos.first->GetGrammarCheck()); - assert(m_pOldGrammarCheckList->MergedOrSame(pGrammar)); if (pGrammar) { const sal_uInt16 nPos = pGrammar->GetWrongPos(pos.second); |