2010-11-15 14:05:44 +01:00
|
|
|
$NetBSD: patch-ba,v 1.6 2010/11/15 13:05:45 adam Exp $
|
2010-04-16 13:45:27 +02:00
|
|
|
|
|
|
|
http://bugreports.qt.nokia.com/browse/QTBUG-6932
|
|
|
|
|
2010-11-15 14:05:44 +01:00
|
|
|
--- src/gui/graphicsview/qgraphicsitem_p.h.orig 2010-09-10 09:05:24.000000000 +0000
|
2010-04-16 13:45:27 +02:00
|
|
|
+++ src/gui/graphicsview/qgraphicsitem_p.h
|
2010-11-15 14:05:44 +01:00
|
|
|
@@ -762,7 +762,7 @@ inline bool qt_closestItemFirst(const QG
|
2010-04-16 13:45:27 +02:00
|
|
|
// 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;
|