diff options
Diffstat (limited to 'sw/source/uibase/uiview/view.cxx')
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index 9838bc9f3c48..f6a8512e758b 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -270,10 +270,9 @@ void SwView::SelectShell() if ( nId ) pBarCfg->SetTopToolbar( m_nSelectionType, nId ); - SfxShell *pSfxShell; for ( sal_uInt16 i = 0; true; ++i ) { - pSfxShell = rDispatcher.GetShell( i ); + SfxShell *pSfxShell = rDispatcher.GetShell( i ); if ( pSfxShell->ISA( SwBaseShell ) || pSfxShell->ISA( SwDrawTextShell ) || pSfxShell->ISA( svx::ExtrusionBar ) |