diff options
Diffstat (limited to 'sfx2/source/view/viewfrm.cxx')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index a22aae8818e6..7ec9a6190148 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -950,11 +950,7 @@ void SfxViewFrame::PopShellAndSubShells_Impl( SfxViewShell& i_rViewShell ) { // more sub shells on the stack, which were not affected by PopSubShells_Impl SfxShell *pSubShell = m_pDispatcher->GetShell( nLevel-1 ); - if ( pSubShell == i_rViewShell.GetSubShell() ) - // "real" sub shells will be deleted elsewhere - m_pDispatcher->Pop( *pSubShell, SfxDispatcherPopFlags::POP_UNTIL ); - else - m_pDispatcher->Pop( *pSubShell, SfxDispatcherPopFlags::POP_UNTIL | SfxDispatcherPopFlags::POP_DELETE ); + m_pDispatcher->Pop( *pSubShell, SfxDispatcherPopFlags::POP_UNTIL | SfxDispatcherPopFlags::POP_DELETE ); } m_pDispatcher->Pop( i_rViewShell ); m_pDispatcher->Flush(); |