From 642867d2ddae37bdf756e1466ba723b6b7f4e844 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 3 Oct 2012 12:45:38 +0200 Subject: [PATCH] Return if header is 0. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit QT-BUG: 184868 Change-Id: Iff041c66fdfb2267e0349bdd47fec0fe63b1799d Reviewed-by: Morten Johan Sørvig --- src/plugins/accessible/widgets/itemviews.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/accessible/widgets/itemviews.cpp b/src/plugins/accessible/widgets/itemviews.cpp index d4cfa8c..a8c42c9 100644 --- a/src/plugins/accessible/widgets/itemviews.cpp +++ b/src/plugins/accessible/widgets/itemviews.cpp @@ -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); -- 2.7.4