summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-23 11:52:07 +0100
committerMichael Stahl <mstahl@redhat.com>2015-06-25 10:03:57 +0000
commit7847365292bf0c5e35cf94835b46e414dbe4692e (patch)
tree533eea2921b33694ba118c5153686a27afe72c28 /accessibility
parent24bc22fcb0550c3ebf74db3642ab32b8e818205c (diff)
fix a11y crash seen in save-as-template
Change-Id: Ib00273452a67bd535e2f879d9801ae611e42cc7e (cherry picked from commit 42713c52c6e145362e0d1409d2db1bb1f048b1c3) (cherry picked from commit fc61dbd5fa32307081a26a1223ca3db65892bf44) Reviewed-on: https://gerrit.libreoffice.org/16427 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessibletabcontrol.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx
index 268a6f335d80..ee4e1c447f4e 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