mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-22 19:00:04 +08:00
5.6.3: fix for https://bugreports.qt.io/browse/QTBUG-52536
This commit is contained in:
parent
ab11991b68
commit
9e384ddc0f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user