diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-13 15:06:50 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-13 15:06:50 +0000 |
| commit | 403fcb28260c3991bc01ff5b146adb0ace3947e5 (patch) | |
| tree | 33f2e5589772b90aa6aacc744a98fb568ff72a7e /src/shape-editor.cpp | |
| parent | Initialize the pointer variables in draw-context with NULL, just to be on the... (diff) | |
| download | inkscape-403fcb28260c3991bc01ff5b146adb0ace3947e5.tar.gz inkscape-403fcb28260c3991bc01ff5b146adb0ace3947e5.zip | |
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)
Diffstat (limited to 'src/shape-editor.cpp')
| -rw-r--r-- | src/shape-editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
