This commit is contained in:
kleuter 2021-08-04 13:52:16 +02:00
parent ab11991b68
commit 9e384ddc0f

View File

@ -119,7 +119,7 @@ QAccessibleInterface *QAccessibleObject::childAt(int x, int y) const
for (int i = 0; i < childCount(); ++i) {
QAccessibleInterface *childIface = child(i);
Q_ASSERT(childIface);
if (childIface->rect().contains(x,y))
if (childIface->isValid() && childIface->rect().contains(x,y))
return childIface;
}
return 0;