summaryrefslogtreecommitdiff
path: root/x11/qt4-libs/patches/patch-ba
blob: b92aa3c399c0d545a19c21c7432af1d1c2f651b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ba,v 1.5 2010/07/04 06:00:14 adam Exp $

http://bugreports.qt.nokia.com/browse/QTBUG-6932

--- src/gui/graphicsview/qgraphicsitem_p.h.orig	2010-06-02 02:03:15.000000000 +0000
+++ src/gui/graphicsview/qgraphicsitem_p.h
@@ -679,7 +679,7 @@ inline bool qt_closestItemFirst(const QG
     // item1Ancestor is now at the same level as item2Ancestor, but not the same.
     const QGraphicsItem *p1 = t1;
     const QGraphicsItem *p2 = t2;
-    while (t1 && t1 != t2) {
+    while (t1 && t2 && t1 != t2) {
         p1 = t1;
         p2 = t2;
         t1 = t1->d_ptr->parent;