diff options
Diffstat (limited to 'sw/source/core/edit/editsh.cxx')
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 0b932fba1652..9e53670badfa 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -780,7 +780,8 @@ void SwEditShell::SetNumberingRestart() switch( pNd->GetNodeType() ) { case SwNodeType::Text: - if( nullptr != ( pContentFrame = static_cast<SwTextNode*>(pNd)->getLayoutFrame( GetLayout() )) ) + pContentFrame = static_cast<SwTextNode*>(pNd)->getLayoutFrame( GetLayout() ); + if( nullptr != pContentFrame ) { // skip hidden frames - ignore protection! if( !static_cast<SwTextFrame*>(pContentFrame)->IsHiddenNow() ) |