Kaydet (Commit) 8db705fc authored tarafından Caolán McNamara's avatar Caolán McNamara

crashtest: fix crash on load of ooo24889-1

regression from

Change-Id: Ie12713778112d1c6ddc9ed817af3998a3dcd9ba8
crashtest: don't crash on layout of ooo70429-[1|2]
üst a551d82b
......@@ -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.
......
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