Kaydet (Commit) 0b1f8cb4 authored tarafından Michael Stahl's avatar Michael Stahl

sw: add an assert wrt. recent bug in SwHTMLParser::SplitAttrTab()

Change-Id: I1fa64beb4724675c2e23bd5d4f0766f6d4cf7873
üst 6250a928
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment