From b82be50fa0f1a4e9f27bc8d6c5da1904c31a998f Mon Sep 17 00:00:00 2001 From: Bidouille Date: Fri, 7 May 2021 23:47:40 +0200 Subject: [PATCH] Fix for issue #127895 (#31) Fixes using the incorrect variable. See https://bz.apache.org/ooo/show_bug.cgi?id=127895 --- main/sfx2/source/doc/sfxbasemodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/sfx2/source/doc/sfxbasemodel.cxx b/main/sfx2/source/doc/sfxbasemodel.cxx index 0b3e8004dc..e8967d0580 100644 --- a/main/sfx2/source/doc/sfxbasemodel.cxx +++ b/main/sfx2/source/doc/sfxbasemodel.cxx @@ -937,7 +937,7 @@ void SAL_CALL SfxBaseModel::disposing( const lang::EventObject& aObject ) else if ( xListener.is() ) m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XEVENTLISTENER >*)0), xListener ); else if ( xDocListener.is() ) - m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XDOCEVENTLISTENER >*)0), xListener ); + m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XDOCEVENTLISTENER >*)0), xDocListener ); } //________________________________________________________________________________________________________