=== modified file 'src/filter-chemistry.cpp' --- src/filter-chemistry.cpp 2013-04-26 19:47:00 +0000 +++ src/filter-chemistry.cpp 2013-09-10 11:58:37 +0000 @@ -208,6 +208,17 @@ set_filter_area(repr, radius, expansion, expansionX, expansionY, width, height); + // Bug #1127103 + // Inkscape now supports both sRGB and linear color-interpolation-filters. + // But, for the moment, keep sRGB as default value for new filters + // (historically set to sRGB and doesn't require conversion between + // filter cairo surfaces and other types of cairo surfaces). + SPCSSAttr *css = sp_repr_css_attr_new(); + sp_repr_css_set_property(css, "color-interpolation-filters", "sRGB"); + sp_repr_css_change(repr, css, "style"); + sp_repr_css_attr_unref(css); + // Bug #1127103 + //create feGaussianBlur node Inkscape::XML::Node *b_repr; b_repr = xml_doc->createElement("svg:feGaussianBlur"); @@ -260,6 +271,17 @@ repr = xml_doc->createElement("svg:filter"); repr->setAttribute("inkscape:collect", "always"); + // Bug #1127103 + // Inkscape now supports both sRGB and linear color-interpolation-filters. + // But, for the moment, keep sRGB as default value for new filters + // (historically set to sRGB and doesn't require conversion between + // filter cairo surfaces and other types of cairo surfaces). + SPCSSAttr *css = sp_repr_css_attr_new(); + sp_repr_css_set_property(css, "color-interpolation-filters", "sRGB"); + sp_repr_css_change(repr, css, "style"); + sp_repr_css_attr_unref(css); + // Bug #1127103 + // Append the new filter node to defs defs->appendChild(repr); Inkscape::GC::release(repr); === modified file 'src/style.cpp' --- src/style.cpp 2013-08-29 21:06:10 +0000 +++ src/style.cpp 2013-09-10 11:59:16 +0000 @@ -3170,6 +3170,9 @@ style->color_interpolation.value = style->color_interpolation.computed = SP_CSS_COLOR_INTERPOLATION_SRGB; style->color_interpolation_filters.set = FALSE; style->color_interpolation_filters.inherit = FALSE; + style->color_interpolation_filters.value = style->color_interpolation_filters.computed = SP_CSS_COLOR_INTERPOLATION_SRGB; + //this line changed because rendering issues + //style->color_interpolation_filters.value = style->color_interpolation_filters.computed = SP_CSS_COLOR_INTERPOLATION_LINEARRGB; style->color_interpolation_filters.value = style->color_interpolation_filters.computed = SP_CSS_COLOR_INTERPOLATION_LINEARRGB; style->fill.clear();