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

List:       kde-commits
Subject:    branches/koffice/2.0/koffice/karbon/plugins/tools
From:       Jan Hambrecht <jaham () gmx ! net>
Date:       2009-06-06 19:49:49
Message-ID: 1244317789.437606.29895.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 978338 by jaham:

backport fix for bug 195472

reviewed by Thorsten



 M  +4 -3      KarbonPatternTool.cpp  


--- branches/koffice/2.0/koffice/karbon/plugins/tools/KarbonPatternTool.cpp #978337:978338
@@ -247,12 +247,13 @@
     // we are not interested in selection content changes when not active
     disconnect( m_canvas->shapeManager(), SIGNAL(selectionContentChanged()), this, SLOT(initialize()));
 
-    foreach( KarbonPatternEditStrategyBase * strategy, m_strategies )
-    {
+    foreach( KarbonPatternEditStrategyBase * strategy, m_strategies ) {
         strategy->repaint();
-        delete strategy;
     }
+
+    qDeleteAll(m_strategies);
     m_strategies.clear();
+    
     foreach( KoShape *shape, m_canvas->shapeManager()->selection()->selectedShapes() )
         shape->update();
     
[prev in list] [next in list] [prev in thread] [next in thread] 

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