diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/frmtool.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index 8e7c4a3700ff..b5e458e5c24d 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1640,8 +1640,7 @@ void InsertCnt_( SwLayoutFrame *pLay, SwDoc *pDoc, //Close the section, where appropriate activate the surrounding //section again. - SwActualSection *pActualSectionUpper1 = pActualSection ? pActualSection->GetUpper() : nullptr; - pActualSection.reset(pActualSectionUpper1); + pActualSection.reset(pActualSection->GetUpper()); pLay = pLay->FindSctFrame(); if ( pActualSection ) { |