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

fix a11y crash seen on moving chart wizard dialog

Change-Id: Ic3ba292e28fe12d7dcc2c2e67aeea48a4c8aaac2
(cherry picked from commit b161552b)
üst a8ddd3b0
...@@ -813,8 +813,9 @@ uno::Reference< XAccessible > ScChildrenShapes::GetSelected(sal_Int32 nSelectedC ...@@ -813,8 +813,9 @@ uno::Reference< XAccessible > ScChildrenShapes::GetSelected(sal_Int32 nSelectedC
std::vector < uno::Reference < drawing::XShape > > aShapes; std::vector < uno::Reference < drawing::XShape > > aShapes;
FillShapes(aShapes); FillShapes(aShapes);
if(aShapes.size()<=0) if (nSelectedChildIndex < 0 || static_cast<size_t>(nSelectedChildIndex) >= aShapes.size())
return xAccessible; return xAccessible;
SortedShapes::iterator aItr; SortedShapes::iterator aItr;
if (FindShape(aShapes[nSelectedChildIndex], aItr)) if (FindShape(aShapes[nSelectedChildIndex], aItr))
xAccessible = Get(aItr - maZOrderedShapes.begin()); xAccessible = Get(aItr - maZOrderedShapes.begin());
......
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