summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2018-01-22 19:54:03 +0100
committerMichael Stahl <mstahl@redhat.com>2018-01-22 19:55:12 +0100
commit0b1f8cb4a7eca3ab5b55c1866ef2761398d1ae95 (patch)
tree0f1e83f3977fd4dafd3bdc819a24ebe6928f770c
parent6250a928d0469eb63c179f56d73cbd24e7f821fe (diff)
sw: add an assert wrt. recent bug in SwHTMLParser::SplitAttrTab()
Change-Id: I1fa64beb4724675c2e23bd5d4f0766f6d4cf7873
-rw-r--r--sw/source/filter/html/htmlctxt.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/filter/html/htmlctxt.cxx b/sw/source/filter/html/htmlctxt.cxx
index f166177fcabb..2ba75527b43b 100644
--- a/sw/source/filter/html/htmlctxt.cxx
+++ b/sw/source/filter/html/htmlctxt.cxx
@@ -131,6 +131,9 @@ void SwHTMLParser::SplitAttrTab( const SwPosition& rNewPos )
m_aParaAttrs.clear();
const SwNodeIndex* pOldEndPara = &m_pPam->GetPoint()->nNode;
+#ifndef NDEBUG
+ auto const nOld(pOldEndPara->GetIndex());
+#endif
sal_Int32 nOldEndCnt = m_pPam->GetPoint()->nContent.GetIndex();
const SwNodeIndex& rNewSttPara = rNewPos.nNode;
@@ -215,6 +218,7 @@ void SwHTMLParser::SplitAttrTab( const SwPosition& rNewPos )
if( bMoveBack )
m_pPam->Move( fnMoveForward );
+ assert(m_pPam->GetPoint()->nNode.GetIndex() == nOld);
}
void SwHTMLParser::SaveDocContext( HTMLAttrContext *pCntxt,