diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-27 22:15:27 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-27 22:15:27 +0000 |
| commit | 1963c876e1df4780d41252de325e8b19e0cedc3a (patch) | |
| tree | 0225d228c850bb8d9be7f7fb74bd9addfa1fcd9a /src/sp-use.cpp | |
| parent | various changes (diff) | |
| parent | modify bbox width for Blur filter in Fill & Stroke (Bug 1171208) (diff) | |
| download | inkscape-1963c876e1df4780d41252de325e8b19e0cedc3a.tar.gz inkscape-1963c876e1df4780d41252de325e8b19e0cedc3a.zip | |
Merged from trunk (r12305)
(bzr r11608.1.106)
Diffstat (limited to 'src/sp-use.cpp')
| -rw-r--r-- | src/sp-use.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp index f565cba20..d923410c8 100644 --- a/src/sp-use.cpp +++ b/src/sp-use.cpp @@ -30,6 +30,7 @@ #include "uri.h" #include "print.h" #include "xml/repr.h" +#include "svg/svg.h" #include "preferences.h" #include "style.h" #include "sp-symbol.h" @@ -179,8 +180,8 @@ Inkscape::XML::Node* SPUse::write(Inkscape::XML::Document *xml_doc, Inkscape::XM sp_repr_set_svg_double(repr, "x", this->x.computed); sp_repr_set_svg_double(repr, "y", this->y.computed); - sp_repr_set_svg_double(repr, "width", this->width.computed); - sp_repr_set_svg_double(repr, "height", this->height.computed); + repr->setAttribute("width", sp_svg_length_write_with_units(this->width).c_str()); + repr->setAttribute("height", sp_svg_length_write_with_units(this->height).c_str()); if (this->ref->getURI()) { gchar *uri_string = this->ref->getURI()->toString(); @@ -230,10 +231,9 @@ gchar* SPUse::description() { if (this->child) { if( SP_IS_SYMBOL( this->child ) ) { - //char *symbol_desc = SP_ITEM(this->child)->description(); - //g_free(symbol_desc); - return g_strdup(_("<b>Clone of Symbol</b>")); - //return g_strdup_printf(_("<b>Clone of Symbol</b>: %s"), symbol_desc ); + char *symbol_desc = SP_ITEM(this->child)->title(); + return g_strdup_printf(_("<b>'%s' Symbol</b>"), symbol_desc ); + g_free(symbol_desc); } static unsigned recursion_depth = 0; |
