diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2022-04-20 18:48:30 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-04-22 10:58:21 +0200 |
commit | ea6a13c6a0ced9c4669ceae08cbd539a62e696e2 (patch) | |
tree | 1a67bd5781719aca37e9cd208c3231696d0481b5 /setup_native/Library_sdqsmsi.mk | |
parent | Release 6.3.6.15 (diff) | |
download | core-ea6a13c6a0ced9c4669ceae08cbd539a62e696e2.tar.gz core-ea6a13c6a0ced9c4669ceae08cbd539a62e696e2.zip |
sw: layout: fix crash when deleting page with section being formatted
This crashes only when calling storeToURL() with writer_pdf_Export?
There is a text frame 112, followed by section frame 126, which contains
table frame 127.
The section frame 126 is being formatted, which in
SwFrame::PrepareMake() formats its prev, text frame 112.
This does MoveBwd() and in SwContentFrame::MakeAll() formats its next,
tab frame 127.
This also does MoveBwd() and then there is this really odd condition in
SwTabFrame::Paste() where it calls SwFrame::CheckPageDescs() if it
*doesn't* have a RES_PAGEDESC item and the page has a non-default page
style - this condition remains inexplicable since initial CVS import.
Then CheckPageDesc() sees the (next) page is empty and deletes it.
So check in sw::IsPageFrameEmpty() that there aren't any sections with
IsDeleteForbidden() set.
(regression from commit b9ef71476fd70bc13f50ebe80390e0730d1b7afb)
Change-Id: I3c64fe40fabffc255c4146a35c678ce6a1cc09c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133222
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit 85aa57359befd7a21b3fdf36f2b362f50495f77c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133151
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 116b246e42a1c807e4e693bd020231a22f05abcd)
Diffstat (limited to 'setup_native/Library_sdqsmsi.mk')
0 files changed, 0 insertions, 0 deletions