diff options
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index ad869f5083c7..6512533f0505 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -2279,8 +2279,8 @@ void SfxCommonTemplateDialog_Impl::ResetFocus() if(ISA(SfxTemplateDialog_Impl)) { SfxViewFrame *pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame(); - SfxViewShell *pVu = pViewFrame->GetViewShell(); - Window *pAppWin = pVu ? pVu->GetWindow(): 0; + rtl::Reference< SfxViewShell > pVu = pViewFrame->GetViewShell(); + Window *pAppWin = pVu.is() ? pVu->GetWindow(): 0; if(pAppWin) pAppWin->GrabFocus(); } |