sw/source/filter/html/htmltab.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
New commits: commit f53189e02c6017f2ba6d7d83ead69f763d3b29aa Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Wed Nov 17 11:04:19 2021 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Wed Nov 17 12:21:26 2021 +0100 oops, fix merge error in commit 08abcae56b13b11d699a30553f7edfc54225d687 "ofz#40593 remove Objects from m_xResizeDrawObjects if deleted during parse" Change-Id: I715530cc19b670eef109e59148db2aac05bd33be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125376 Tested-by: Michael Stahl <michael.st...@allotropia.de> Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx index f90b77522319..670ed3ae7aeb 100644 --- a/sw/source/filter/html/htmltab.cxx +++ b/sw/source/filter/html/htmltab.cxx @@ -1069,19 +1069,15 @@ bool SwHTMLParser::IsReqIF() const } // if any m_pResizeDrawObjects members are deleted during parse, remove them -// from m_pResizeDrawObjects and m_xDrawObjectPercentWidths +// from m_pResizeDrawObjects and m_pDrawObjectPrcWidths void HTMLTable::ObjectInDestruction(const SdrObject& rObject) { auto it = std::find(m_pResizeDrawObjects->begin(), m_pResizeDrawObjects->end(), &rObject); assert(it != m_pResizeDrawObjects->end()); -#if 0 auto nIndex = std::distance(m_pResizeDrawObjects->begin(), it); -#endif m_pResizeDrawObjects->erase(it); -#if 0 - auto otherit = m_xDrawObjectPercentWidths->begin() + nIndex * 3; - m_xDrawObjectPercentWidths->erase(otherit, otherit + 3); -#endif + auto otherit = m_pDrawObjectPrcWidths->begin() + nIndex * 3; + m_pDrawObjectPrcWidths->erase(otherit, otherit + 3); } HTMLTable::~HTMLTable()