diff options
Diffstat (limited to 'sfx2/source/view/viewfrm.cxx')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index ac63cd920adb..12e7cead9e94 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2619,8 +2619,13 @@ void SfxViewFrame::ExecView_Impl while ( pFrame ) { SfxViewFrame *pView = pFrame->GetCurrentViewFrame(); - if ( nActFrame == nFrame || pView && - aName.CompareIgnoreCaseToAscii( pView->SfxShell::GetName() ) == COMPARE_EQUAL ) + if ( + nActFrame == nFrame || + ( + pView && + aName.CompareIgnoreCaseToAscii( pView->SfxShell::GetName() ) == COMPARE_EQUAL + ) + ) { pRet = pView; break; |