From 403fcb28260c3991bc01ff5b146adb0ace3947e5 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 13 Aug 2008 15:06:50 +0000 Subject: Get rid of sp_nodepath_current() and a few instances of SP_ACTIVE_DESKTOP by passing in the current desktop and nodepath from the caller (bzr r6615) --- src/shape-editor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shape-editor.cpp') diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index bfb0e3c0c..3575d3405 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -441,7 +441,7 @@ void ShapeEditor::curve_drag(gdouble eventx, gdouble eventy) { eventy - this->curvepoint_event[NR::Y]); NR::Point const delta_dt(this->desktop->w2d(delta_w)); - sp_nodepath_curve_drag (this->grab_node, this->grab_t, delta_dt); //!!! FIXME: which nodepath?!!! also uses current!!! + sp_nodepath_curve_drag (this->nodepath, this->grab_node, this->grab_t, delta_dt); this->curvepoint_event[NR::X] = x; this->curvepoint_event[NR::Y] = y; @@ -517,8 +517,8 @@ void ShapeEditor::set_type_of_segments(NRPathcode code) { sp_node_selected_set_line_type(this->nodepath, code); } -void ShapeEditor::move_nodes_screen(gdouble dx, gdouble dy) { - sp_node_selected_move_screen(this->nodepath, dx, dy); +void ShapeEditor::move_nodes_screen(SPDesktop *desktop, gdouble dx, gdouble dy) { + sp_node_selected_move_screen(desktop, this->nodepath, dx, dy); } void ShapeEditor::move_nodes(gdouble dx, gdouble dy) { sp_node_selected_move(this->nodepath, dx, dy); -- cgit v1.2.3