diff --git a/src/rubberband.cpp b/src/rubberband.cpp
index 24087b10caaa9cd5f5ebed24e9359350cc9ff730..4b7b1c48f2bcef08418aa811bcffb29e453197a8 100644 (file)
--- a/src/rubberband.cpp
+++ b/src/rubberband.cpp
{
_points.clear();
_mode = RUBBERBAND_MODE_RECT;
- _touchpath_curve = sp_curve_new_sized(2000);
+ _touchpath_curve = new SPCurve(2000);
}
void Inkscape::Rubberband::delete_canvas_items()
void Inkscape::Rubberband::start(SPDesktop *d, NR::Point const &p)
{
_points.clear();
- sp_curve_reset(_touchpath_curve);
+ _touchpath_curve->reset();
delete_canvas_items();
_desktop = d;
_start = p;
_started = true;
_points.push_back(_desktop->d2w(p));
- sp_curve_moveto(_touchpath_curve, p);
+ _touchpath_curve->moveto(p);
sp_canvas_force_full_redraw_after_interruptions(_desktop->canvas, 5);
}
_mode = RUBBERBAND_MODE_RECT; // restore the default
_points.clear();
- sp_curve_reset(_touchpath_curve);
+ _touchpath_curve->reset();
delete_canvas_items();
_end = p;
_desktop->scroll_to_point(&p);
- sp_curve_lineto (_touchpath_curve, p);
+ _touchpath_curve->lineto(p);
NR::Point next = _desktop->d2w(p);
// we want the points to be at most 0.5 screen pixels apart,