[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - accessibility/source
Caolán McNamara
caolanm at redhat.com
Tue Jun 23 03:56:07 PDT 2015
accessibility/source/standard/vclxaccessibletabcontrol.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit fc61dbd5fa32307081a26a1223ca3db65892bf44
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jun 23 11:52:07 2015 +0100
fix a11y crash seen in save-as-template
Change-Id: Ib00273452a67bd535e2f879d9801ae611e42cc7e
(cherry picked from commit 42713c52c6e145362e0d1409d2db1bb1f048b1c3)
diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx
index 26ffc8e..d1ea190 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
More information about the Libreoffice-commits
mailing list