summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-06-09 09:11:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-06-09 11:51:15 +0200
commitb1d57168b8cecc1713e729c22260feaf33fab29f (patch)
tree6e7453b7c6d5bb4e8494192d14e6376dd71c7859 /vcl
parent8494815ba566c94b59c3690fe138f70d8b6e169a (diff)
a Frame has max two children
during creation it might not have all its children created yet if a11y querys it during its setup. Change-Id: Ifbbec7eeb80409dc5e871c2022d1ee1e36c6e74f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135526 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/layout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 7ee87733c503..946e2cce2732 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1499,7 +1499,7 @@ const vcl::Window *VclFrame::get_label_widget() const
{
if (m_pLabel)
return m_pLabel;
- assert(GetChildCount() == 2);
+ assert(GetChildCount() <= 2);
//The label widget is normally the first (of two) children
const WindowImpl* pWindowImpl = ImplGetWindowImpl();
if (pWindowImpl->mpFirstChild == pWindowImpl->mpLastChild) //no label exists