diff options
Diffstat (limited to 'sw/source/uibase/uiview/uivwimp.cxx')
-rw-r--r-- | sw/source/uibase/uiview/uivwimp.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/uivwimp.cxx b/sw/source/uibase/uiview/uivwimp.cxx index ee9693bd8c3b..f5dc49330f83 100644 --- a/sw/source/uibase/uiview/uivwimp.cxx +++ b/sw/source/uibase/uiview/uivwimp.cxx @@ -61,9 +61,8 @@ SwView_Impl::SwView_Impl(SwView* pShell) SwView_Impl::~SwView_Impl() { - auto pInterceptor = comphelper::getFromUnoTunnel<SwXDispatchProviderInterceptor>(m_xDispatchProviderInterceptor); - if(pInterceptor) - pInterceptor->Invalidate(); + if(m_xDispatchProviderInterceptor) + m_xDispatchProviderInterceptor->Invalidate(); view::XSelectionSupplier* pTextView = mxXTextView.get(); static_cast<SwXTextView*>(pTextView)->Invalidate(); mxXTextView.clear(); |