diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-11-12 15:42:40 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-11-12 15:42:40 +0000 |
| commit | 88544b24c6119ef18889159f9ef4537e882fb4cb (patch) | |
| tree | f7e7a3b4ef8fc3c5661436e7156176645f2fcc9b /src/style.cpp | |
| parent | Fix encoding of "title" label in win32 native file dialog (diff) | |
| download | inkscape-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.cpp | 6 |
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; |
