summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-18 15:24:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-18 20:36:45 +0100
commit4535e2291741bb9262ca274cb50f80a2618cdcc2 (patch)
treee9a4a3b67b58c9a7afb6b1cf85f9d517916ec870 /sw/source
parent5c6340d06b4e58529f6122ecf3b26c6d4456226b (diff)
crashtesting: export ooo88744-1.odt to .doc and load
intermittently on ctrl+end the layout crashes Change-Id: I4b9b5ab8d1514a3847b4993afd6f4de414544d05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106059 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/pagechg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index f386afa1bdfd..a40b9d18bdcc 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -1229,7 +1229,8 @@ void SwFrame::CheckPageDescs( SwPageFrame *pStart, bool bNotifyFields, SwPageFra
#endif
}
assert(!bIsEmpty || !isPageFrameEmpty);
- if (bIsEmpty || isPageFrameEmpty)
+ const bool bWantRemovePage = bIsEmpty || isPageFrameEmpty;
+ if (bWantRemovePage && !pPage->IsDeleteForbidden())
{
// It also might be that an empty page is not needed at all.
// However, the algorithm above cannot determine that. It is not needed if the following