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

fix a11y crash seen in save-as-template

Change-Id: Ib00273452a67bd535e2f879d9801ae611e42cc7e
(cherry picked from commit 42713c52)
üst 613bf9ef
...@@ -377,10 +377,9 @@ Reference< XAccessible > VCLXAccessibleTabControl::getAccessibleChild( sal_Int32 ...@@ -377,10 +377,9 @@ Reference< XAccessible > VCLXAccessibleTabControl::getAccessibleChild( sal_Int32
Reference< XAccessible > xChild = m_aAccessibleChildren[i]; Reference< XAccessible > xChild = m_aAccessibleChildren[i];
if ( !xChild.is() ) if ( !xChild.is() )
{ {
if ( m_pTabControl ) sal_uInt16 nPageId = m_pTabControl ? m_pTabControl->GetPageId((sal_uInt16)i) : 0;
if (nPageId)
{ {
sal_uInt16 nPageId = m_pTabControl->GetPageId( (sal_uInt16)i );
xChild = new VCLXAccessibleTabPage( m_pTabControl, nPageId ); xChild = new VCLXAccessibleTabPage( m_pTabControl, nPageId );
// insert into tab page list // insert into tab page list
......
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