summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-02-07 14:22:01 +0100
committerMichael Stahl <mstahl@redhat.com>2013-02-07 14:36:26 +0100
commitb058abc39aaa34d81ebb36cc2405b221fb055418 (patch)
tree7fde57bb2903b2bdc9182b7521932c3f04452454 /vcl
parent8960f0de2e8b957f383ec659b308cc459dcf475b (diff)
AtkListener::updateChildList: assert when getAccessibleChild ...
... throws IndexOutOfBoundsException, since it's not supposed to happen. Change-Id: I876e6cede88f86d12543d3ce65e1b0a0ca5389a7
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/a11y/atklistener.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx
index 0e949081dd0d..8d1b1bd616c8 100644
--- a/vcl/unx/gtk/a11y/atklistener.cxx
+++ b/vcl/unx/gtk/a11y/atklistener.cxx
@@ -114,7 +114,14 @@ void AtkListener::updateChildList(accessibility::XAccessibleContext* pContext)
m_aChildList.resize(nChildren);
for(sal_Int32 n = 0; n < nChildren; n++)
{
- m_aChildList[n] = pContext->getAccessibleChild(n);
+ try
+ {
+ m_aChildList[n] = pContext->getAccessibleChild(n);
+ }
+ catch (lang::IndexOutOfBoundsException const&)
+ {
+ assert(false); // not consistent with getAccessibleChildCount
+ }
OSL_ASSERT(m_aChildList[n].is());
}
}