summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2011-11-01 08:41:37 +0000
committerJazzyNico <nicoduf@yahoo.fr>2011-11-01 08:41:37 +0000
commit9acea06b41c7a081a9f059331a01d26a5be9a563 (patch)
tree1e7280f8dde1f81041372e64c9a5d19d518660dd /src
parentFixing initializer order and missing initializers. (diff)
downloadinkscape-9acea06b41c7a081a9f059331a01d26a5be9a563.tar.gz
inkscape-9acea06b41c7a081a9f059331a01d26a5be9a563.zip
Filters. Removing deprecated workaround in drop shadow (see Bug #808013 ).
(bzr r10709)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/filter/shadows.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/extension/internal/filter/shadows.h b/src/extension/internal/filter/shadows.h
index 6a7cf38f2..d76358a96 100644
--- a/src/extension/internal/filter/shadows.h
+++ b/src/extension/internal/filter/shadows.h
@@ -108,12 +108,7 @@ ColorizableDropShadow::get_filter_text (Inkscape::Extension::Extension * ext)
const gchar *type = ext->get_param_enum("type");
guint32 color = ext->get_param_color("color");
- if (ext->get_param_float("blur") > 0) {
- blur << "<feGaussianBlur in=\"composite1\" stdDeviation=\"" << ext->get_param_float("blur") << "\" result=\"blur\" />\n";
- } else {
- blur << "";
- }
-
+ blur << ext->get_param_float("blur");
x << ext->get_param_float("xoffset");
y << ext->get_param_float("yoffset");
a << (color & 0xff) / 255.0F;
@@ -167,7 +162,7 @@ ColorizableDropShadow::get_filter_text (Inkscape::Extension::Extension * ext)
"<filter xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" style=\"color-interpolation-filters:sRGB;\" inkscape:label=\"Drop Shadow\">\n"
"<feFlood flood-opacity=\"%s\" flood-color=\"rgb(%s,%s,%s)\" result=\"flood\" />\n"
"<feComposite in=\"%s\" in2=\"%s\" operator=\"%s\" result=\"composite1\" />\n"
- "%s"
+ "<feGaussianBlur in=\"composite1\" stdDeviation=\"%s\" result=\"blur\" />\n"
"<feOffset dx=\"%s\" dy=\"%s\" result=\"offset\" />\n"
"<feComposite in=\"%s\" in2=\"%s\" operator=\"%s\" result=\"composite2\" />\n"
"</filter>\n", a.str().c_str(), r.str().c_str(), g.str().c_str(), b.str().c_str(),