diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-07 12:22:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-07 15:01:57 +0200 |
commit | 66ebc285320b8dfb064ed6a06a13e5c78158b950 (patch) | |
tree | 0d1f08eae37796b04e90ab55d21369decdd668d7 /svx | |
parent | 0a710a098e65a5e83c1ea47d5bdc1b56ef48f314 (diff) |
a11y: assert on switching hatch/bitmap area radio button tab things
Change-Id: I2525123dfe2c2dedcbf808f5d2f8e054e4c4bdf1
Reviewed-on: https://gerrit.libreoffice.org/39690
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/svxpixelctlaccessiblecontext.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx index d27f18abe8b1..c2a048a82853 100644 --- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx +++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx @@ -355,7 +355,7 @@ void SAL_CALL SvxPixelCtlAccessible::addAccessibleEventListener( const uno::Refe { ::osl::MutexGuard aGuard( m_aMutex ); if (!mnClientId) - mnClientId = comphelper::AccessibleEventNotifier::registerClient( ); + mnClientId = comphelper::AccessibleEventNotifier::registerClient( ); comphelper::AccessibleEventNotifier::addEventListener( mnClientId, xListener ); } } @@ -365,7 +365,8 @@ void SAL_CALL SvxPixelCtlAccessible::removeAccessibleEventListener( const uno::R if (xListener.is()) { ::osl::MutexGuard aGuard( m_aMutex ); - + if (!mnClientId) + return; sal_Int32 nListenerCount = comphelper::AccessibleEventNotifier::removeEventListener( mnClientId, xListener ); if ( !nListenerCount ) { |