summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2018-10-04 13:00:31 +0000
committerMartin Owens <doctormo@gmail.com>2018-10-05 22:03:39 +0000
commit93bd83b73e292ef37d8c4f03e5a9185f870bb0df (patch)
tree8ab42f5a785a01fbe4d700613f655372f26d10b6 /src/style.cpp
parentfix 1795942 "object to path" uses outdated state (diff)
downloadinkscape-93bd83b73e292ef37d8c4f03e5a9185f870bb0df.tar.gz
inkscape-93bd83b73e292ef37d8c4f03e5a9185f870bb0df.zip
Removal of code but breaks gradients
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 6d86e6a96..4ee979387 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -259,7 +259,7 @@ SPStyle::SPStyle(SPDocument *document_in, SPObject *object_in) :
// Unimplemented SVG 1.1: alignment-baseline, clip, clip-path, color-profile, cursor,
// dominant-baseline, flood-color, flood-opacity, font-size-adjust,
// glyph-orientation-horizontal, glyph-orientation-vertical, kerning, lighting-color,
- // pointer-events, stop-color, stop-opacity, unicode-bidi
+ // pointer-events, unicode-bidi
// For enums: property( name, enumeration, default value , inherits = true );
// For scale24: property( name, default value = 0, inherits = true );
@@ -384,7 +384,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)
{
// std::cout << "SPStyle::SPStyle( SPDocument ): Entrance: (" << _count << ")" << std::endl;
// std::cout << " Document: " << (document_in?"present":"null") << std::endl;
@@ -566,7 +570,7 @@ SPStyle::read( SPObject *object, Inkscape::XML::Node *repr ) {
// if( !(*temp == *this ) ) std::cout << "SPStyle::read: Need to clear" << std::endl;
// delete temp;
- clear(); // FIXME, If this isn't here, gradient editing stops working. Why?
+ clear(); // FIXME, If this isn't here, EVERYTHING stops working! Why?
if (object && object->cloned) {
cloned = true;