summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/extension/dbus/document-interface.cpp5
-rw-r--r--src/extension/dbus/document-interface.xml2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/extension/dbus/document-interface.cpp b/src/extension/dbus/document-interface.cpp
index a28bb92fa..9a900e0ee 100644
--- a/src/extension/dbus/document-interface.cpp
+++ b/src/extension/dbus/document-interface.cpp
@@ -52,6 +52,9 @@ SPObject *
get_object_by_name (SPDesktop *desk, gchar *name)
{
return sp_desktop_document(desk)->getObjectById(name);
+ /* ALTERNATIVE (is this faster if only repr is needed?)
+ Inkscape::XML::Node *newnode = sp_repr_lookup_name((doc->root)->repr, name);
+ */
}
const gchar *
@@ -584,7 +587,7 @@ document_interface_get_node_coordinates (DocumentInterface *object, gchar *shape
if (shapenode == NULL || shapenode->attribute("d") == NULL) {
return FALSE;
}
- const char * path = strdup(shapenode->attribute("d"));
+ char * path = strdup(shapenode->attribute("d"));
printf("PATH: %s\n", path);
Geom::parse_svg_path (path);
diff --git a/src/extension/dbus/document-interface.xml b/src/extension/dbus/document-interface.xml
index 7126887af..37749c932 100644
--- a/src/extension/dbus/document-interface.xml
+++ b/src/extension/dbus/document-interface.xml
@@ -578,7 +578,7 @@
</arg>
<doc:doc>
<doc:description>
- <doc:para>Get the path value of an object. Equivilent to calling <doc:ref type="method" to="document.get_attribte">get_attribte()</doc:ref> with argument "d". Will not turn object into a path if it is not already.</doc:para>
+ <doc:para>Get the path value of an object. Equivilent to calling <doc:ref type="method" to="document.get_attribute">get_attribte()</doc:ref> with argument "d". Will not turn object into a path if it is not already.</doc:para>
</doc:description>
<doc:seealso><doc:ref type="interface" to="Paths">Paths</doc:ref></doc:seealso>
</doc:doc>