summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e33975c)
raw | patch | inline | side by side (parent: e33975c)
author | glimmer07 <glimmer07@users.sourceforge.net> | |
Tue, 21 Jul 2009 17:50:12 +0000 (17:50 +0000) | ||
committer | glimmer07 <glimmer07@users.sourceforge.net> | |
Tue, 21 Jul 2009 17:50:12 +0000 (17:50 +0000) |
src/extension/dbus/document-interface.cpp | patch | blob | history | |
src/extension/dbus/document-interface.xml | patch | blob | history |
index a28bb92fa090eaee74de2005be3fab56acfdfcec..9a900e0ee4bbe5c065f78a38b02979ff5c9a0c5d 100644 (file)
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);
index 7126887af76b3ec05030bc10d265fd0083a7717d..37749c9326f0612e00d4ae3e5f4f1499ad7c063d 100644 (file)
</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>