diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-02-18 19:20:56 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-02-19 16:49:29 +0100 |
commit | 925c2c9842e548ab31fc3bed6c6d2840d1260861 (patch) | |
tree | 634b2cbfe931cade83c5eb5bad891c177681849f | |
parent | a26c4dbd9ca17578fd5c165bd89b618751fabb3c (diff) |
sw: remove dead code in SwLayHelper::CheckInsertPage()
If SwFormatPageDesc is inited like that GetNumOffset() cannot have
value.
Change-Id: I4f303148c82541ef9d8fa6284018cfba35f20524
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88980
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r-- | sw/source/core/layout/laycache.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx index a5da72128614..8cee8dd31fc2 100644 --- a/sw/source/core/layout/laycache.cxx +++ b/sw/source/core/layout/laycache.cxx @@ -656,11 +656,6 @@ bool SwLayHelper::CheckInsertPage() if ( !pDesc ) { pDesc = mrpPage->GetPageDesc()->GetFollow(); - - SwFormatPageDesc aFollowDesc( pDesc ); - oPgNum = aFollowDesc.GetNumOffset(); - if ( oPgNum ) - static_cast<SwRootFrame*>(mrpPage->GetUpper())->SetVirtPageNum(true); } else { |