Kaydet (Commit) 603f4ae4 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#5578 remove Extraneous Paras before applying redlines

Change-Id: Ibcc75de98f1d01f8617e34b3844b62e57142466e
Reviewed-on: https://gerrit.libreoffice.org/48515Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3f4e239a
......@@ -5303,6 +5303,10 @@ ErrCode SwWW8ImplReader::CoreLoad(WW8Glossary const *pGloss)
DeleteCtrlStack();
m_pLastAnchorPos.reset();//ensure this is deleted before UpdatePageDescs
// remove extra paragraphs after attribute ctrl
// stacks etc. are destroyed, and before fields
// are updated
m_aExtraneousParas.delete_all_from_doc();
m_xRedlineStack->closeall(*m_pPaM->GetPoint());
m_xRedlineStack.reset();
DeleteAnchorStack();
......@@ -5393,11 +5397,6 @@ ErrCode SwWW8ImplReader::CoreLoad(WW8Glossary const *pGloss)
mpCursor.reset();
m_pPaM = nullptr;
// remove extra paragraphs after attribute ctrl
// stacks etc. are destroyed, and before fields
// are updated
m_aExtraneousParas.delete_all_from_doc();
UpdateFields();
// delete the pam before the call for hide all redlines (Bug 73683)
......
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