From 640154af7b877aeaa9b421ef97e2b73523c329fd Mon Sep 17 00:00:00 2001 From: buliabyak Date: Thu, 15 Oct 2009 06:39:10 +0000 Subject: [PATCH] fix crash: draw two paths, select both, object - clip - set, node tool, edit clippath, drag a clippath node, undo --- src/shape-editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index b44d889e0..4999eb7cf 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -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); -- 2.30.2