summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/style-internal.h4
-rw-r--r--src/style.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/style-internal.h b/src/style-internal.h
index fa675894a..a28474870 100644
--- a/src/style-internal.h
+++ b/src/style-internal.h
@@ -727,8 +727,8 @@ public:
value.color.set(0);
}
- SPIColor( Glib::ustring const &name )
- : SPIBase( name ),
+ SPIColor( Glib::ustring const &name, bool inherits = true )
+ : SPIBase( name, inherits ),
currentcolor(false) {
value.color.set(0);
}
diff --git a/src/style.cpp b/src/style.cpp
index 1d1ce797f..529b9bb0a 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -388,11 +388,11 @@ SPStyle::SPStyle(SPDocument *document_in, SPObject *object_in) :
color_rendering( "color-rendering", enum_color_rendering, SP_CSS_COLOR_RENDERING_AUTO),
image_rendering( "image-rendering", enum_image_rendering, SP_CSS_IMAGE_RENDERING_AUTO),
shape_rendering( "shape-rendering", enum_shape_rendering, SP_CSS_SHAPE_RENDERING_AUTO),
- text_rendering( "text-rendering", enum_text_rendering, SP_CSS_TEXT_RENDERING_AUTO ),
+ text_rendering( "text-rendering", enum_text_rendering, SP_CSS_TEXT_RENDERING_AUTO ),
// Stop color and opacity
- stop_color("stop-color"),
- stop_opacity("stop-opacity", SP_SCALE24_MAX)
+ stop_color("stop-color", false), // SPIColor, does not inherit
+ stop_opacity("stop-opacity", SP_SCALE24_MAX, false) // Does not inherit
{
// std::cout << "SPStyle::SPStyle( SPDocument ): Entrance: (" << _count << ")" << std::endl;
// std::cout << " Document: " << (document_in?"present":"null") << std::endl;