Return if header is 0.

QT-BUG: 184868

Change-Id: Iff041c66fdfb2267e0349bdd47fec0fe63b1799d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
bb10
Frederik Gladhorn 2012-10-03 12:45:38 +02:00 committed by The Qt Project
parent 38f521b0bd
commit 642867d2dd
1 changed files with 2 additions and 0 deletions

View File

@ -764,6 +764,8 @@ QRect QAccessibleTableHeaderCell::rect() const
header = tv->header();
#endif
}
if (!header)
return QRect();
QPoint zero = header->mapToGlobal(QPoint(0, 0));
int sectionSize = header->sectionSize(index);
int sectionPos = header->sectionPosition(index);