Kaydet (Commit) 66ebc285 authored tarafından Caolán McNamara's avatar Caolán McNamara

a11y: assert on switching hatch/bitmap area radio button tab things

Change-Id: I2525123dfe2c2dedcbf808f5d2f8e054e4c4bdf1
Reviewed-on: https://gerrit.libreoffice.org/39690Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 0a710a09
...@@ -355,7 +355,7 @@ void SAL_CALL SvxPixelCtlAccessible::addAccessibleEventListener( const uno::Refe ...@@ -355,7 +355,7 @@ void SAL_CALL SvxPixelCtlAccessible::addAccessibleEventListener( const uno::Refe
{ {
::osl::MutexGuard aGuard( m_aMutex ); ::osl::MutexGuard aGuard( m_aMutex );
if (!mnClientId) if (!mnClientId)
mnClientId = comphelper::AccessibleEventNotifier::registerClient( ); mnClientId = comphelper::AccessibleEventNotifier::registerClient( );
comphelper::AccessibleEventNotifier::addEventListener( mnClientId, xListener ); comphelper::AccessibleEventNotifier::addEventListener( mnClientId, xListener );
} }
} }
...@@ -365,7 +365,8 @@ void SAL_CALL SvxPixelCtlAccessible::removeAccessibleEventListener( const uno::R ...@@ -365,7 +365,8 @@ void SAL_CALL SvxPixelCtlAccessible::removeAccessibleEventListener( const uno::R
if (xListener.is()) if (xListener.is())
{ {
::osl::MutexGuard aGuard( m_aMutex ); ::osl::MutexGuard aGuard( m_aMutex );
if (!mnClientId)
return;
sal_Int32 nListenerCount = comphelper::AccessibleEventNotifier::removeEventListener( mnClientId, xListener ); sal_Int32 nListenerCount = comphelper::AccessibleEventNotifier::removeEventListener( mnClientId, xListener );
if ( !nListenerCount ) if ( !nListenerCount )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment