Code

fix crash: draw two paths, select both, object - clip - set, node tool, edit clippath...
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 15 Oct 2009 06:39:10 +0000 (06:39 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 15 Oct 2009 06:39:10 +0000 (06:39 +0000)
src/shape-editor.cpp

index b44d889e077806acd31398e9be49afc2dfc294e4..4999eb7cfa984d22724ce5b6377798d9a18dd3dd 100644 (file)
@@ -353,6 +353,9 @@ bool ShapeEditor::is_over_stroke (Geom::Point event_p, bool remember) {
 
     const SPItem *item = get_item(SH_NODEPATH);
 
+    if (!item || !SP_IS_ITEM(item))
+        return false;
+
     //Translate click point into proper coord system
     this->curvepoint_doc = desktop->w2d(event_p);
     this->curvepoint_doc *= sp_item_dt2i_affine(item);