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

a11y: don't look for accessiblechildren when there are none

üst 5fbafa28
...@@ -863,6 +863,11 @@ void AccessibleSlideSorterView::Implementation::UpdateChildren (void) ...@@ -863,6 +863,11 @@ void AccessibleSlideSorterView::Implementation::UpdateChildren (void)
// Create new children for the modified visible range. // Create new children for the modified visible range.
maPageObjects.resize(mrSlideSorter.GetModel().GetPageCount()); maPageObjects.resize(mrSlideSorter.GetModel().GetPageCount());
// No Visible children
if (mnFirstVisibleChild == -1 && mnLastVisibleChild == -1)
return;
for (sal_Int32 nIndex(mnFirstVisibleChild); nIndex<=mnLastVisibleChild; ++nIndex) for (sal_Int32 nIndex(mnFirstVisibleChild); nIndex<=mnLastVisibleChild; ++nIndex)
GetAccessibleChild(nIndex); GetAccessibleChild(nIndex);
} }
......
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