update Tue Jun 22 06:37:08 PDT 2010
[pkgsrc.git] / x11 / qt4-libs / patches / patch-ba
1 $NetBSD: patch-ba,v 1.4 2010/04/16 11:45:27 wiz Exp $
2
3 http://bugreports.qt.nokia.com/browse/QTBUG-6932
4
5 --- src/gui/graphicsview/qgraphicsitem_p.h.orig 2010-02-11 15:55:22.000000000 +0000
6 +++ src/gui/graphicsview/qgraphicsitem_p.h
7 @@ -678,7 +678,7 @@ inline bool qt_closestItemFirst(const QG
8      // item1Ancestor is now at the same level as item2Ancestor, but not the same.
9      const QGraphicsItem *p1 = t1;
10      const QGraphicsItem *p2 = t2;
11 -    while (t1 && t1 != t2) {
12 +    while (t1 && t2 && t1 != t2) {
13          p1 = t1;
14          p2 = t2;
15          t1 = t1->d_ptr->parent;