summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-10-15 06:39:10 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-10-15 06:39:10 +0000
commit65153786612ddeaa63d7ea5fbed0c2698a023fe7 (patch)
tree11b0e26df24da710279a894147839349b3290f21 /src/shape-editor.cpp
parentUpdated .desktop file (sorry to our translators!) (diff)
downloadinkscape-65153786612ddeaa63d7ea5fbed0c2698a023fe7.tar.gz
inkscape-65153786612ddeaa63d7ea5fbed0c2698a023fe7.zip
fix crash: draw two paths, select both, object - clip - set, node tool, edit clippath, drag a clippath node, undo
(bzr r8773)
Diffstat (limited to '')
-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);