koffice/krita/plugins/tools/tool_transform

Cyrille Berger cyb at lepi.org
Thu Apr 16 22:31:19 CEST 2009


SVN commit 955055 by berger:

Fix: crash when using the transform tool on a layer without a selection

Can someone review this change ?

CCMAIL:kimageshop at kde.org

 M  +1 -1      kis_tool_transform.cc  


--- trunk/koffice/krita/plugins/tools/tool_transform/kis_tool_transform.cc #955054:955055
@@ -734,7 +734,7 @@
     currentNode()->paintDevice()->setDirty(rc); // XXX: This is not enough - should union with new extent
 
     canvas->view()->selectionManager()->selectionChanged();
-    if(currentSelection()->hasShapeSelection())
+    if(currentSelection() && currentSelection()->hasShapeSelection())
         canvas->view()->selectionManager()->shapeSelectionChanged();
 
     // Else add the command -- this will have the memento from the previous state,


More information about the kimageshop mailing list