summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-27 22:15:27 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-27 22:15:27 +0000
commit1963c876e1df4780d41252de325e8b19e0cedc3a (patch)
tree0225d228c850bb8d9be7f7fb74bd9addfa1fcd9a /src/sp-use.cpp
parentvarious changes (diff)
parentmodify bbox width for Blur filter in Fill & Stroke (Bug 1171208) (diff)
downloadinkscape-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.cpp12
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;