Return if header is 0.
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Wed, 3 Oct 2012 10:45:38 +0000 (12:45 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 4 Oct 2012 09:58:48 +0000 (11:58 +0200)
QT-BUG: 184868

Change-Id: Iff041c66fdfb2267e0349bdd47fec0fe63b1799d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/plugins/accessible/widgets/itemviews.cpp

index d4cfa8c..a8c42c9 100644 (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);