summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31111a0)
raw | patch | inline | side by side (parent: 31111a0)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 14 Apr 2008 07:59:27 +0000 (07:59 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 14 Apr 2008 07:59:27 +0000 (07:59 +0000) |
src/style.cpp | patch | blob | history |
diff --git a/src/style.cpp b/src/style.cpp
index 956727873d98bf5b0c70c75b7cea93e5362da077..fd6b17892fe718c2767f048285c8510900020947 100644 (file)
--- a/src/style.cpp
+++ b/src/style.cpp
* I haven't given this much attention. See comments below about
* currentColor, colorProfile, and relative URIs.
*/
- if (!child.set || child.inherit || child.currentcolor) {
+ if (!child.set || child.inherit) {
sp_style_merge_ipaint(style, &child, &parent);
child.set = parent.set;
child.inherit = parent.inherit;
@@ -2146,6 +2146,8 @@ sp_style_merge_ipaint(SPStyle *style, SPIPaint *paint, SPIPaint const *parent)
}
} else if ( parent->isColor() ) {
paint->setColor( parent->value.color );
+ } else if ( parent->isNoneSet() ) {
+ paint->noneSet = TRUE;
} else if ( parent->isNone() ) {
//
} else {