diff options
Diffstat (limited to 'sfx2/source/control/dispatch.cxx')
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 08e958e293ef..c630c94db76a 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1948,8 +1948,8 @@ sal_Bool SfxDispatcher::_FindServer // excecuted on a container dispatcher without a IPClient. if ( !bIsServerShell ) { - SfxViewShell *pViewSh = pImp->pFrame->GetViewShell(); - bIsServerShell = !pViewSh || !pViewSh->GetUIActiveClient(); + rtl::Reference< SfxViewShell > pViewSh = pImp->pFrame->GetViewShell(); + bIsServerShell = !pViewSh.is() || !pViewSh->GetUIActiveClient(); } // Shell belongs to Container? |