diff options
Diffstat (limited to 'svtools/source/control/accessibleruler.cxx')
-rw-r--r-- | svtools/source/control/accessibleruler.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/control/accessibleruler.cxx b/svtools/source/control/accessibleruler.cxx index 2752cf7f7d4b..c188895444f3 100644 --- a/svtools/source/control/accessibleruler.cxx +++ b/svtools/source/control/accessibleruler.cxx @@ -231,11 +231,14 @@ void SAL_CALL SvtRulerAccessible::addAccessibleEventListener( const uno::Referen void SAL_CALL SvtRulerAccessible::removeAccessibleEventListener( const uno::Reference< XAccessibleEventListener >& xListener ) { - if (!(xListener.is() && mnClientId)) + if (!xListener.is()) return; std::unique_lock aGuard( m_aMutex ); + if (!mnClientId) + return; + sal_Int32 nListenerCount = comphelper::AccessibleEventNotifier::removeEventListener( mnClientId, xListener ); if ( !nListenerCount ) { |