diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-01-05 13:46:30 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-01-05 13:46:30 +0000 |
| commit | 9cb142e8a749d329a7978ddd1cb43d68cf38920b (patch) | |
| tree | 3f3abbc18730c8139bf5e484a78a7cf0f2b7e9bd /src/nodepath.cpp | |
| parent | port the fix from sp-text.cpp rev 11260 to fix bug 1628173 (diff) | |
| download | inkscape-9cb142e8a749d329a7978ddd1cb43d68cf38920b.tar.gz inkscape-9cb142e8a749d329a7978ddd1cb43d68cf38920b.zip | |
robustize remembering the dragged segment - store node number, not pointer; fixes crash 1505549
(bzr r2134)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp index e58a8b31d..8371c8241 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -1608,8 +1608,10 @@ sp_nodepath_add_node_near_point(Inkscape::NodePath::Path *nodepath, NR::Point p) * cf. app/vectors/gimpbezierstroke.c, gimp_bezier_stroke_point_move_relative() */ void -sp_nodepath_curve_drag(Inkscape::NodePath::Node * e, double t, NR::Point delta) +sp_nodepath_curve_drag(int node, double t, NR::Point delta) { + Inkscape::NodePath::Node *e = sp_nodepath_get_node_by_index(node); + //fixme: e and e->p can be NULL, so check for those before proceeding g_return_if_fail(e != NULL); g_return_if_fail(&e->p != NULL); |
