summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-22 14:37:41 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-09-23 11:14:21 +0200
commit6a842d1c079ff88e5616d05ec151b647acc25b6e (patch)
treef6c228de59e87f1432d6fd25a0ca7edf4104d89d /svx
parent40136386078ae0aac76806719899eb489cde28db (diff)
tdf#121323 avoid fatal exception with a11y enabled
not related to the problem described there, but worth avoiding Change-Id: I5a33425d856d1a2d31a4e735b9936a89576121b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103176 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/accessibility/ChildrenManagerImpl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx
index b24f70688b6f..dbfeb7ce46aa 100644
--- a/svx/source/accessibility/ChildrenManagerImpl.cxx
+++ b/svx/source/accessibility/ChildrenManagerImpl.cxx
@@ -294,7 +294,7 @@ void ChildrenManagerImpl::CreateListOfVisibleShapes (
}
// Add the visible shapes for which only the XShapes exist.
- if (mxShapeList.is())
+ if (mxShapeList.is() && mxShapeList->hasElements())
{
sal_Int32 nShapeCount = mxShapeList->getCount();
raDescriptorList.reserve( nShapeCount );
@@ -321,7 +321,6 @@ void ChildrenManagerImpl::CreateListOfVisibleShapes (
}
}
-
void ChildrenManagerImpl::RemoveNonVisibleChildren (
const ChildDescriptorListType& rNewChildList,
ChildDescriptorListType& rOldChildList)