Code

Replaced two tests with CxxTest versions.
[inkscape.git] / src / rubberband.cpp
index 8130768061d82d2e8dda8c0051b8b2be705ca4cc..cc0e70a7444c564dc72cacd8e58f3288b33ead26 100644 (file)
@@ -44,7 +44,7 @@ void Inkscape::Rubberband::stop()
 void Inkscape::Rubberband::move(NR::Point const &p)
 {
     if (_canvas == NULL) {
-        _canvas = static_cast<CtrlRect *>(sp_canvas_item_new(SP_DT_CONTROLS(_desktop), SP_TYPE_CTRLRECT, NULL));
+        _canvas = static_cast<CtrlRect *>(sp_canvas_item_new(sp_desktop_controls(_desktop), SP_TYPE_CTRLRECT, NULL));
     }
 
     _desktop->scroll_to_point(&p);