From: buliabyak Date: Sat, 1 Apr 2006 20:43:30 +0000 (+0000) Subject: forgot to check if the knot exists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af19cea1f28e6fbd5803b08da9688244b14ad6e4;p=inkscape.git forgot to check if the knot exists --- diff --git a/src/nodepath.cpp b/src/nodepath.cpp index af73a37c2..97be9355c 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -881,9 +881,9 @@ static Inkscape::NodePath::Node *sp_nodepath_set_node_type(Inkscape::NodePath::N } // if one of handles is mouseovered, preserve its position - if (SP_KNOT_IS_MOSEOVER(node->p.knot)) { + if (node->p.knot && SP_KNOT_IS_MOSEOVER(node->p.knot)) { sp_node_adjust_handle(node, 1); - } else if (SP_KNOT_IS_MOSEOVER(node->n.knot)) { + } else if (node->n.knot && SP_KNOT_IS_MOSEOVER(node->n.knot)) { sp_node_adjust_handle(node, -1); } else { sp_node_adjust_handles(node);