public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-libs/qt-gui/files: qt-gui-4.6.0-fix-qgraphicsscence.patch
@ 2009-12-07 15:19 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 2+ messages in thread
From: Markos Chandras (hwoarang) @ 2009-12-07 15:19 UTC (permalink / raw
  To: gentoo-commits

hwoarang    09/12/07 15:19:56

  Added:                qt-gui-4.6.0-fix-qgraphicsscence.patch
  Log:
  Add patch to fix plasma crash on kde4. Bug #296003
  (Portage version: 2.2_rc55/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-libs/qt-gui/files/qt-gui-4.6.0-fix-qgraphicsscence.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-gui/files/qt-gui-4.6.0-fix-qgraphicsscence.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-gui/files/qt-gui-4.6.0-fix-qgraphicsscence.patch?rev=1.1&content-type=text/plain

Index: qt-gui-4.6.0-fix-qgraphicsscence.patch
===================================================================
From 705880f0045ac39140f980d69aec68869213e379 Mon Sep 17 00:00:00 2001
From: Alexis Menard <alexis.menard@nokia.com>
Date: Thu, 26 Nov 2009 13:47:34 +0100
Subject: [PATCH] Fix a crash in KDE/Plasma with QGraphicsView. TopLevel list of items
 was corrupted.

This nasty bug was triggered when the index sort the top level list of
items. We forgot to set the flag topLevelSequentialOrdering to false
so when an item was removed from the top level list it was using the
sibling index which can be not valid anymore since the list is not
sorted by sequential order. So it let some dangling pointers in the
list which make processDirtyItemRecursive crash the next paint event.

Reviewed-by:bnilsen
Reviewed-by:andreas
---
 src/gui/graphicsview/qgraphicsscene_p.h          |    3 +-
 2 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h
index a1d0496..69e4d5b 100644
--- a/src/gui/graphicsview/qgraphicsscene_p.h
+++ b/src/gui/graphicsview/qgraphicsscene_p.h
@@ -78,7 +78,7 @@ class QGraphicsSceneIndex;
 class QGraphicsView;
 class QGraphicsWidget;
 
-class QGraphicsScenePrivate : public QObjectPrivate
+class Q_AUTOTEST_EXPORT QGraphicsScenePrivate : public QObjectPrivate
 {
     Q_DECLARE_PUBLIC(QGraphicsScene)
 public:
@@ -265,6 +265,7 @@ public:
     {
         if (needSortTopLevelItems) {
             qSort(topLevelItems.begin(), topLevelItems.end(), qt_notclosestLeaf);
+            topLevelSequentialOrdering = false;
             needSortTopLevelItems = false;
         }
     }






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in x11-libs/qt-gui/files: qt-gui-4.6.0-fix-qgraphicsscence.patch
@ 2010-02-15 15:09 Dror Levin (spatz)
  0 siblings, 0 replies; 2+ messages in thread
From: Dror Levin (spatz) @ 2010-02-15 15:09 UTC (permalink / raw
  To: gentoo-commits

spatz       10/02/15 15:09:40

  Removed:              qt-gui-4.6.0-fix-qgraphicsscence.patch
  Log:
  Version bump.
  (Portage version: 2.2_rc62/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-15 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 15:19 [gentoo-commits] gentoo-x86 commit in x11-libs/qt-gui/files: qt-gui-4.6.0-fix-qgraphicsscence.patch Markos Chandras (hwoarang)
  -- strict thread matches above, loose matches on Subject: below --
2010-02-15 15:09 Dror Levin (spatz)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox