Fix crash during autotest execution on Mac OS X

Change-Id: Ib9cd6791a7b48a0cde9e6d991b2d7f6fb4020819
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
Lars Knoll 2015-06-01 11:52:45 +02:00 committed by Simon Hausmann
parent beef975f92
commit 9b0809d50a

View File

@ -1010,6 +1010,9 @@ QAccessible::Role QAccessibleTableCell::role() const
QAccessible::State QAccessibleTableCell::state() const
{
QAccessible::State st;
if (!view)
return st;
QRect globalRect = view->rect();
globalRect.translate(view->mapToGlobal(QPoint(0,0)));
if (!globalRect.intersects(rect()))