summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7791797)
raw | patch | inline | side by side (parent: 7791797)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 10 Feb 2006 07:40:11 +0000 (07:40 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 10 Feb 2006 07:40:11 +0000 (07:40 +0000) |
src/nodepath.cpp | patch | blob | history |
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index c28ca7b80361f65cbb121f317cf2b594b5ecd6f8..3a76e785061009bd06573ab69d87bc17251e51b0 100644 (file)
--- 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);