diff options
| author | Soren Berg <glimmer07@gmail.com> | 2009-07-21 17:50:12 +0000 |
|---|---|---|
| committer | glimmer07 <glimmer07@users.sourceforge.net> | 2009-07-21 17:50:12 +0000 |
| commit | f09b3a57c8a6259ef82db7be0786ff2959874a24 (patch) | |
| tree | 16dbde0ef7471ef29ee9abf2517467a035707c62 /src | |
| parent | Worked on text, now works with limited capability. (diff) | |
| download | inkscape-f09b3a57c8a6259ef82db7be0786ff2959874a24.tar.gz inkscape-f09b3a57c8a6259ef82db7be0786ff2959874a24.zip | |
worked on path parsing.
(bzr r8254.1.18)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/dbus/document-interface.cpp | 5 | ||||
| -rw-r--r-- | src/extension/dbus/document-interface.xml | 2 |
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> |
