summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-10 02:48:31 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-10 02:48:31 +0000
commit384e513c74dd0df8983c6ace0238bad11b4db8b0 (patch)
tree3bb67bb861a247da5501e933ffbbbeb2791a8787 /src/nodepath.cpp
parentno need to update coords here, it's now done in any knot automatically (diff)
downloadinkscape-384e513c74dd0df8983c6ace0238bad11b4db8b0.tar.gz
inkscape-384e513c74dd0df8983c6ace0238bad11b4db8b0.zip
fix setting knot->pos for node handles, but remove coords updating - now done in the knot when dragging
(bzr r2595)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 1d854418b..0437414a8 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -3445,11 +3445,9 @@ static void node_handle_moved(SPKnot *knot, NR::Point *p, guint state, gpointer
me->pos = NR::Point(rnew) + n->pos;
sp_ctrlline_set_coords(SP_CTRLLINE(me->line), n->pos, me->pos);
- // this is what sp_knot_set_position does, but without emitting the signal:
+ // move knot, but without emitting the signal:
// we cannot emit a "moved" signal because we're now processing it
- if (me->knot->item) SP_CTRL(me->knot->item)->moveto(me->pos);
-
- knot->desktop->set_coordinate_status(me->pos);
+ sp_knot_moveto(me->knot, &(me->pos));
update_object(n->subpath->nodepath);