diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-12-15 17:07:01 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-12-15 17:39:23 +0100 |
commit | b77881366b17230908f441dfa27afcafc4374708 (patch) | |
tree | 0b244650049026640a97f09d331ada2264890fdb /include/comphelper/lok.hxx | |
parent | aa07f2892e581dd31f1b8861499e29c96dddbac0 (diff) |
tdf#100635 sw: fix layout crash caused by field expansion ...
... triggering recursive layout-in-layout where a SwTextFrame
that's being formatted is deleted inside some other frame's
SwTextNode::GetFormatted().
The offending field is a SwAuthorityField that's located in a
fly-frame with FLY_AT_PAGE anchor.
SwPageFrame::GetContentPosition() is only called by field expansion
code, so this shouldn't have an effect on layout.
It already has a fall-back for the case when the frame has invalid
flags, so handle the situation when the SwLineLayout has been
deleted from the SwCache due to overflow the same way,
which prevents the recursive formatting.
Change-Id: I90437edb5692dc2bdec7ad03964588942bde05be