summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-04-01 20:43:30 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-04-01 20:43:30 +0000
commite9b8c38ed67b824f32d8c91e9a9719cc665e9fec (patch)
tree5a8d280353db769fbc7ecc9848da037a2c6d7b61 /src/nodepath.cpp
parentwhen switching node type, preserve the position of the mouseovered handle (diff)
downloadinkscape-e9b8c38ed67b824f32d8c91e9a9719cc665e9fec.tar.gz
inkscape-e9b8c38ed67b824f32d8c91e9a9719cc665e9fec.zip
forgot to check if the knot exists
(bzr r396)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp4
1 files changed, 2 insertions, 2 deletions
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);