summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp-object.cpp2
-rw-r--r--src/style.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index cc862417d..7807703f6 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -1063,7 +1063,7 @@ Inkscape::XML::Node* SPObject::write(Inkscape::XML::Document *doc, Inkscape::XML
if (style) {
// 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);
+ 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.
diff --git a/src/style.cpp b/src/style.cpp
index b65cb26cb..0b0358bb2 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -1003,7 +1003,7 @@ SPStyle::readIfUnset( gint id, gchar const *val, SPStyleSrc const &source ) {
Glib::ustring
SPStyle::write( guint const flags, SPStyleSrc const &style_src_req, SPStyle const *const base ) const {
- // std::cout << "SPStyle::write" << std::endl;
+ // std::cout << "SPStyle::write: flags: " << flags << std::endl;
Glib::ustring style_string;
for(std::vector<SPIBase*>::size_type i = 0; i != _properties.size(); ++i) {
@@ -1114,7 +1114,7 @@ SPStyle::_mergeString( gchar const *const p ) {
CRDeclaration *const decl_list
= cr_declaration_parse_list_from_buf(reinterpret_cast<guchar const *>(p), CR_UTF_8);
if (decl_list) {
- _mergeDeclList( decl_list, SP_STYLE_SRC_ATTRIBUTE );
+ _mergeDeclList( decl_list, SP_STYLE_SRC_STYLE_PROP );
cr_declaration_destroy(decl_list);
}
}