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

crashtesting: crash on import of ooo33887.sxw

since

commit a172f854
Date:   Sun Dec 3 21:00:37 2017 +0100

    tdf#74693: Footnotes text appearing above footnote separator line

    When invalidate a footnoteframe, invalidate also the lower textframe,
    so it will be recalculated before text rendering.

Change-Id: I95aec5e86bc53126de71bdebe7fbfada955be9c9
Reviewed-on: https://gerrit.libreoffice.org/46085Tested-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 acebe3ea
......@@ -547,8 +547,11 @@ SwLayNotify::~SwLayNotify()
if ( bPos && pLay->Lower() && !IsLowersComplete() )
{
pLay->Lower()->InvalidatePos();
if(pLay->Lower()->IsFootnoteFrame())
static_cast<SwFootnoteFrame*>(pLay->Lower())->Lower()->InvalidatePos();
SwFootnoteFrame* pFtnFrame = pLay->Lower()->IsFootnoteFrame() ?
static_cast<SwFootnoteFrame*>(pLay->Lower()) : nullptr;
SwFrame* pFtnLower = pFtnFrame ? pFtnFrame->Lower() : nullptr;
if (pFtnLower)
pFtnLower->InvalidatePos();
}
if ( bPrtPos )
......
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