summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-01-17 16:03:42 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2017-01-17 16:03:42 +0000
commitb6875ce1916a57c9e13cfc0b8fd63fa522b1e449 (patch)
treeb37204e2fa13e2daa6af0bc053be3cb3ca8db816 /src
parentFix regression on selecting objects after locking layers (diff)
downloadinkscape-b6875ce1916a57c9e13cfc0b8fd63fa522b1e449.tar.gz
inkscape-b6875ce1916a57c9e13cfc0b8fd63fa522b1e449.zip
Actually unsets attribute instead of ignoring it when it's 0
Fixed bugs: - https://launchpad.net/bugs/481805 (bzr r15420)
Diffstat (limited to 'src')
-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);