summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-05-07 00:19:19 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-05-07 00:19:19 +0000
commit1ddc7ec2acf950829c709aee064da51475b1f8c9 (patch)
tree75e2e73703fdf1821138ed3aac4877d2a253b4d8 /src
parentUpdate to trunk (diff)
parentDocumentation. Advanced tutorial update (not fully translated). (diff)
downloadinkscape-1ddc7ec2acf950829c709aee064da51475b1f8c9.tar.gz
inkscape-1ddc7ec2acf950829c709aee064da51475b1f8c9.zip
Update to trunk
(bzr r13090.1.72)
Diffstat (limited to 'src')
-rw-r--r--src/extension/dbus/document-interface.cpp2
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp8
-rw-r--r--src/widgets/toolbox.cpp5
3 files changed, 9 insertions, 6 deletions
diff --git a/src/extension/dbus/document-interface.cpp b/src/extension/dbus/document-interface.cpp
index 221a3e879..e3452f4ce 100644
--- a/src/extension/dbus/document-interface.cpp
+++ b/src/extension/dbus/document-interface.cpp
@@ -169,7 +169,7 @@ selection_get_center_x (Inkscape::Selection *sel){
gdouble
selection_get_center_y (Inkscape::Selection *sel){
Geom::OptRect box = sel->documentBounds(SPItem::GEOMETRIC_BBOX);
- return box ? box->midpoint()[Geom::X] : 0;
+ return box ? box->midpoint()[Geom::Y] : 0;
}
/*
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 559398a84..b6095fa8b 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -500,10 +500,12 @@ void InkscapePreferences::initPageTools()
_page_connector.add_line(false, "", _connector_ignore_text, "",
_("If on, connector attachment points will not be shown for text objects"));
+#ifdef WITH_LPETOOL
//LPETool
- // commented out, because the LPETool is not finished yet.
- //this->AddPage(_page_lpetool, _("LPE Tool"), iter_tools, PREFS_PAGE_TOOLS_LPETOOL);
- //this->AddNewObjectsStyle(_page_lpetool, "/tools/lpetool");
+ //disabled, because the LPETool is not finished yet.
+ this->AddPage(_page_lpetool, _("LPE Tool"), iter_tools, PREFS_PAGE_TOOLS_LPETOOL);
+ this->AddNewObjectsStyle(_page_lpetool, "/tools/lpetool");
+#endif // WITH_LPETOOL
}
void InkscapePreferences::initPageUI()
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 02da805bf..3d6f73ef1 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -1301,8 +1301,9 @@ void setup_tool_toolbox(GtkWidget *toolbox, SPDesktop *desktop)
" <toolitem action='ToolDropper' />"
" <toolitem action='ToolConnector' />"
-
-// " <toolitem action='ToolLPETool' />"
+#ifdef WITH_LPETOOL
+ " <toolitem action='ToolLPETool' />"
+#endif
" </toolbar>"
"</ui>";