diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-23 11:52:07 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-06 12:51:36 +0200 |
commit | b9b1ec3d44f05d00c423b73cb9a0b13e73d570fe (patch) | |
tree | b147ebdbea03de7fb130105e68ccfc010465c7cc /accessibility | |
parent | 1a30af1ce5973d30dd357be4a2b182d6a856edc0 (diff) |
fix a11y crash seen in save-as-template
Change-Id: Ib00273452a67bd535e2f879d9801ae611e42cc7e
(cherry picked from commit 42713c52c6e145362e0d1409d2db1bb1f048b1c3)
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessibletabcontrol.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx index 26ffc8ebd81e..d1ea190aab15 100644 --- a/accessibility/source/standard/vclxaccessibletabcontrol.cxx +++ b/accessibility/source/standard/vclxaccessibletabcontrol.cxx @@ -377,10 +377,9 @@ Reference< XAccessible > VCLXAccessibleTabControl::getAccessibleChild( sal_Int32 Reference< XAccessible > xChild = m_aAccessibleChildren[i]; 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 ); // insert into tab page list |