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

List:       kde-kimageshop
Subject:    koffice/krita/plugins/tools/tool_transform
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2009-04-16 20:31:19
Message-ID: 1239913879.885845.25642.nullmailer () svn ! kde ! org
[Download RAW message or body]

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@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,
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


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

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