summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-02-10 07:40:11 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-02-10 07:40:11 +0000
commitb1b7f7b76532c35e6714640e8be5029e83fc88db (patch)
treed3a0e10d332fd59fd86c07917b27362d4a7167fe /src/nodepath.cpp
parentrearrange effect submenus, rename some effects, fix capitalization (diff)
downloadinkscape-b1b7f7b76532c35e6714640e8be5029e83fc88db.tar.gz
inkscape-b1b7f7b76532c35e6714640e8be5029e83fc88db.zip
fix crash when selecting a subpath endnode
(bzr r110)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp5
1 files changed, 3 insertions, 2 deletions
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);