summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-02-04 10:22:35 +0000
committertavmjong-free <tavmjong@free.fr>2017-02-04 10:22:35 +0000
commit2a84c87bd1c6850a9bb9ad5b39f82d1dacb4b94d (patch)
tree96d622a4e1cb20e4e86b8a7fc38dd8d72cc9356c /src/sp-object.cpp
parentDisable rotate guides in doc rotation (diff)
parentAdd some more comments to improve code understanding (diff)
downloadinkscape-2a84c87bd1c6850a9bb9ad5b39f82d1dacb4b94d.tar.gz
inkscape-2a84c87bd1c6850a9bb9ad5b39f82d1dacb4b94d.zip
Merge in GSoC style dialog. (Work in progress.)
(bzr r15471)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 0dc301c49..cc862417d 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -1061,7 +1061,9 @@ Inkscape::XML::Node* SPObject::write(Inkscape::XML::Document *doc, Inkscape::XML
}
if (style) {
- Glib::ustring s = style->write(SP_STYLE_FLAG_IFSET);
+ // Write if property set by style attribute in this object
+ Glib::ustring s =
+ style->write(SP_STYLE_FLAG_IFSET & SP_STYLE_FLAG_IFSRC, SP_STYLE_SRC_STYLE_PROP);
// Check for valid attributes. This may be time consuming.
// It is useful, though, for debugging Inkscape code.