summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 541462f)
raw | patch | inline | side by side (parent: 541462f)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 15 Oct 2009 06:39:10 +0000 (06:39 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 15 Oct 2009 06:39:10 +0000 (06:39 +0000) |
src/shape-editor.cpp | patch | blob | history |
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index b44d889e077806acd31398e9be49afc2dfc294e4..4999eb7cfa984d22724ce5b6377798d9a18dd3dd 100644 (file)
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
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);