diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/layout/objectformattertxtfrm.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/layout/ssfrm.cxx | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 341c7845a10e..8e73cfc2a2f9 100644 --- a/sw/source/core/layout/objectformattertxtfrm.cxx +++ b/sw/source/core/layout/objectformattertxtfrm.cxx @@ -702,6 +702,7 @@ void SwObjectFormatterTextFrame::FormatAnchorFrameAndItsPrevs( SwTextFrame& _rAn } if ( pSectFrame && pSectFrame->IsSctFrame() ) { + SwFrameDeleteGuard aDeleteGuard(&_rAnchorTextFrame); // #i44049# _rAnchorTextFrame.LockJoin(); SwFrame* pFrame = pSectFrame->GetUpper()->GetLower(); diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx index 8550f4a7f4f6..47e5b598b99b 100644 --- a/sw/source/core/layout/ssfrm.cxx +++ b/sw/source/core/layout/ssfrm.cxx @@ -517,6 +517,9 @@ void SwLayoutFrame::DestroyImpl() } } pFrame->RemoveFromLayout(); + //forcepoint#74, testcase swanchoredobject_considerobjwrapinfluenceonobjpos + if (pFrame->IsDeleteForbidden()) + throw std::logic_error("DeleteForbidden"); SwFrame::DestroyFrame(pFrame); pFrame = m_pLower; } |