[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/plugins/chartshape/kdchart/src
From:       Johannes Simon <johannes.simon () gmail ! com>
Date:       2010-10-21 18:30:07
Message-ID: 20101021183007.3BA76AC899 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1188231 by jsimon:

Remove diagram from plane in destructor to avoid a dangling (invalid) pointer to this diagram

 M  +2 -0      KDChartAbstractDiagram.cpp  


--- trunk/koffice/plugins/chartshape/kdchart/src/KDChartAbstractDiagram.cpp #1188230:1188231
@@ -117,6 +117,8 @@
 AbstractDiagram::~AbstractDiagram()
 {
     emit aboutToBeDestroyed();
+    if ( d->plane )
+        d->plane->takeDiagram( this );
     delete _d;
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic