From: buliabyak Date: Fri, 10 Feb 2006 07:40:11 +0000 (+0000) Subject: fix crash when selecting a subpath endnode X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a36de19bf5d3b83237de388e8a58a2f4f252b859;p=inkscape.git fix crash when selecting a subpath endnode --- diff --git a/src/nodepath.cpp b/src/nodepath.cpp index c28ca7b80..3a76e7850 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -1225,11 +1225,12 @@ sp_nodepath_select_segment_near_point(SPItem * item, NR::Point p, bool toggle) Inkscape::NodePath::Node *e = sp_nodepath_get_node_by_index(position.piece); gboolean force = FALSE; - if (!(e->selected && e->p.other->selected)) { + if (!(e->selected && (!e->p.other || e->p.other->selected))) { force = TRUE; } sp_nodepath_node_select(e, (gboolean) toggle, force); - sp_nodepath_node_select(e->p.other, TRUE, force); + if (e->p.other) + sp_nodepath_node_select(e->p.other, TRUE, force); sp_nodepath_ensure_ctrls(nodepath);