summaryrefslogtreecommitdiffstats
path: root/src/rubberband.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rubberband.cpp')
-rw-r--r--src/rubberband.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rubberband.cpp b/src/rubberband.cpp
index 2111a6d50..4a2b38944 100644
--- a/src/rubberband.cpp
+++ b/src/rubberband.cpp
@@ -98,7 +98,7 @@ void Inkscape::Rubberband::move(Geom::Point const &p)
if (_mode == RUBBERBAND_MODE_RECT) {
if (_rect == NULL) {
- _rect = static_cast<CtrlRect *>(sp_canvas_item_new(sp_desktop_controls(_desktop), SP_TYPE_CTRLRECT, NULL));
+ _rect = static_cast<CtrlRect *>(sp_canvas_item_new(_desktop->getControls(), SP_TYPE_CTRLRECT, NULL));
_rect->setShadow(1, 0xffffffff);
}
_rect->setRectangle(Geom::Rect(_start, _end));