summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-rect.cpp')
-rw-r--r--src/sp-rect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp
index 88dad5354..e69cdfc7b 100644
--- a/src/sp-rect.cpp
+++ b/src/sp-rect.cpp
@@ -120,6 +120,7 @@ void SPRect::set(unsigned key, gchar const *value) {
SPShape::set(key, value);
break;
}
+ updateRepr();
#ifdef OBJECT_TRACE
objectTrace( "SPRect::set", false );
#endif
@@ -171,10 +172,14 @@ Inkscape::XML::Node * SPRect::write(Inkscape::XML::Document *xml_doc, Inkscape::
if (this->rx._set) {
sp_repr_set_svg_length(repr, "rx", this->rx);
+ } else {
+ repr->setAttribute("rx", NULL);
}
if (this->ry._set) {
sp_repr_set_svg_length(repr, "ry", this->ry);
+ } else {
+ repr->setAttribute("ry", NULL);
}
sp_repr_set_svg_length(repr, "x", this->x);