summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shape-editor.cpp')
-rw-r--r--src/shape-editor.cpp3
1 files changed, 3 insertions, 0 deletions
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);