summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-11-12 15:42:40 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-11-12 15:42:40 +0000
commit88544b24c6119ef18889159f9ef4537e882fb4cb (patch)
treef7e7a3b4ef8fc3c5661436e7156176645f2fcc9b /src/style.cpp
parentFix encoding of "title" label in win32 native file dialog (diff)
downloadinkscape-88544b24c6119ef18889159f9ef4537e882fb4cb.tar.gz
inkscape-88544b24c6119ef18889159f9ef4537e882fb4cb.zip
Explicitly stop inheritance of 'stop-color' per SVG spec.
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp6
1 files changed, 3 insertions, 3 deletions
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;