mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2025-01-23 04:14:37 +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) {
|
for (int i = 0; i < childCount(); ++i) {
|
||||||
QAccessibleInterface *childIface = child(i);
|
QAccessibleInterface *childIface = child(i);
|
||||||
Q_ASSERT(childIface);
|
Q_ASSERT(childIface);
|
||||||
if (childIface->rect().contains(x,y))
|
if (childIface->isValid() && childIface->rect().contains(x,y))
|
||||||
return childIface;
|
return childIface;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user