a11y crash on accessing disposed TabControl during close of impress
Change-Id: I3064eb136ed3a6a32acd64bfb2f6fbe31595e1cf
This commit is contained in:
@@ -43,9 +43,14 @@ VCLXAccessibleTabControl::VCLXAccessibleTabControl( VCLXWindow* pVCLXWindow )
|
||||
:VCLXAccessibleComponent( pVCLXWindow )
|
||||
{
|
||||
m_pTabControl = static_cast< TabControl* >( GetWindow().get() );
|
||||
|
||||
if ( m_pTabControl )
|
||||
m_aAccessibleChildren.assign( m_pTabControl->GetPageCount(), Reference< XAccessible >() );
|
||||
if (!m_pTabControl)
|
||||
return;
|
||||
if (m_pTabControl->isDisposed())
|
||||
{
|
||||
m_pTabControl.clear();
|
||||
return;
|
||||
}
|
||||
m_aAccessibleChildren.assign( m_pTabControl->GetPageCount(), Reference< XAccessible >() );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user