summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-22 14:37:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-22 17:25:54 +0200
commitc5ff4cbd0192773c6503d54325de01abda7e9fa5 (patch)
tree848486e1f014a4a6bfe7fc320bf86c9fa395a7fc /svx
parent456bc04c9879f8ca191bd633f7341241c3cea317 (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/+/103174 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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 c5214d406bbb..08af808b26bf 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())
return;
sal_Int32 nShapeCount = mxShapeList->getCount();
@@ -321,7 +321,6 @@ void ChildrenManagerImpl::CreateListOfVisibleShapes (
}
}
-
void ChildrenManagerImpl::RemoveNonVisibleChildren (
const ChildDescriptorListType& rNewChildList,
ChildDescriptorListType& rOldChildList)