summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/fly.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index ecd4251881aa..0d926b1a3523 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -1464,12 +1464,12 @@ void CalcContent( SwLayoutFrm *pLay,
static_cast<SwTextFrm*>(pFrm)->ForbidFollowFormat();
const bool bDeleteForbidden(pSect && pSect->IsDeleteForbidden());
- if (pSect)
+ if (pSect && !bDeleteForbidden)
pSect->ForbidDelete();
pFrm->Calc(pRenderContext);
- if (!bDeleteForbidden)
+ if (pSect && !bDeleteForbidden)
pSect->AllowDelete();
// OD 14.03.2003 #i11760# - reset control flag for follow format.