summaryrefslogtreecommitdiffstats
path: root/src/widgets/desktop-widget.cpp
diff options
context:
space:
mode:
authormjwybrow <mjwybrow@users.sourceforge.net>2006-01-20 04:12:21 +0000
committermjwybrow <mjwybrow@users.sourceforge.net>2006-01-20 04:12:21 +0000
commitb01791161926320dbb8b9a5435ea2fb470c32795 (patch)
treec61cf814c6f1a3a840cf5a9efdc3f6f961b9c9e6 /src/widgets/desktop-widget.cpp
parentUpdate to gtk28 (diff)
downloadinkscape-b01791161926320dbb8b9a5435ea2fb470c32795.tar.gz
inkscape-b01791161926320dbb8b9a5435ea2fb470c32795.zip
* src/widgets/toolbox.cpp, src/widgets/desktop-widget.cpp,
src/conn-avoid-ref.cpp, src/conn-avoid-ref.h, src/sp-namedview.cpp, src/sp-namedview.h, src/attributes.cpp, src/attributes.h, src/attributes-test.cpp: Added a "Spacing" control to the connector toolbar which allows the user to adjust the amount of space left around avoided shapes for the purpose of determining auto-routing connector paths. (bzr r18)
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
-rw-r--r--src/widgets/desktop-widget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index f9a8b8f62..b7832658f 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -46,6 +46,7 @@
#include "ui/widget/selected-style.h"
#include "sp-item.h"
#include "dialogs/swatches.h"
+#include "conn-avoid-ref.h"
#ifdef WITH_INKBOARD
#endif
@@ -912,6 +913,10 @@ sp_desktop_widget_new (SPNamedView *namedview)
dtw->desktop->init (namedview, dtw->canvas);
inkscape_add_desktop (dtw->desktop);
+ // Add the shape geometry to libavoid for autorouting connectors.
+ // This needs desktop set for its spacing preferences.
+ init_avoided_shape_geometry(dtw->desktop);
+
dtw->selected_style->setDesktop(dtw->desktop);
/* Once desktop is set, we can update rulers */