summaryrefslogtreecommitdiffstats
path: root/src/seltrans.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2012-05-09 07:54:48 +0000
committerJon A. Cruz <jon@joncruz.org>2012-05-09 07:54:48 +0000
commit0459094999e0298341ecad677464043528d1036f (patch)
treeb3645de4ef972c8a65910c4890bc6e2d55fdbab9 /src/seltrans.cpp
parentUnified variable names as scoping now makes the code safe. (diff)
downloadinkscape-0459094999e0298341ecad677464043528d1036f.tar.gz
inkscape-0459094999e0298341ecad677464043528d1036f.zip
Centralized line creation and enhanced visibility.
(bzr r11350)
Diffstat (limited to 'src/seltrans.cpp')
-rw-r--r--src/seltrans.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index ca190e5ad..f480a4824 100644
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
@@ -46,11 +46,13 @@
#include "mod360.h"
#include <2geom/angle.h>
#include "display/snap-indicator.h"
+#include "ui/control-manager.h"
#if !GTK_CHECK_VERSION(2,22,0)
#include "compat-key-syms.h"
#endif
+using Inkscape::ControlManager;
using Inkscape::DocumentUndo;
static void sp_remove_handles(SPKnot *knot[], gint num);
@@ -157,7 +159,7 @@ Inkscape::SelTrans::SelTrans(SPDesktop *desktop) :
sp_canvas_item_hide(_norm);
for (int i = 0; i < 4; i++) {
- _l[i] = SP_CTRLLINE(sp_canvas_item_new(sp_desktop_controls(desktop), SP_TYPE_CTRLLINE, NULL));
+ _l[i] = ControlManager::getManager().createControlLine(sp_desktop_controls(desktop));
sp_canvas_item_hide(_l[i]);
}