From f09608c636d8480f6fb3c1e2674f9726a854dd29 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Thu, 8 Sep 2011 21:25:40 +0200 Subject: Filters. Fix for inverted parameters in Light Eraser CPF. (bzr r10626) --- src/extension/internal/filter/transparency.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/extension/internal/filter/transparency.h b/src/extension/internal/filter/transparency.h index 79657749a..4e91f8854 100644 --- a/src/extension/internal/filter/transparency.h +++ b/src/extension/internal/filter/transparency.h @@ -185,8 +185,8 @@ ChannelTransparency::get_filter_text (Inkscape::Extension::Extension * ext) Make the lightest parts of the object progressively transparent. Filter's parameters: - * Expansion (1.->1000., default 100) -> colormatrix (first 3 values, multiplicator) - * Erosion (0.->1000., default 50) -> colormatrix (4th value, multiplicator) + * Expansion (0.->1000., default 50) -> colormatrix (4th value, multiplicator) + * Erosion (1.->1000., default 100) -> colormatrix (first 3 values, multiplicator) * Global opacity (0.->1., default 1.) -> composite (k2) * Inverted (boolean, default false) -> colormatrix (values, true: first 3 values positive, 4th negative) @@ -204,8 +204,8 @@ public: "\n" "" N_("Light Eraser") "\n" "org.inkscape.effect.filter.LightEraser\n" - "100\n" - "50\n" + "50\n" + "100\n" "1\n" "false\n" "\n" @@ -233,15 +233,15 @@ LightEraser::get_filter_text (Inkscape::Extension::Extension * ext) opacity << ext->get_param_float("opacity"); if (ext->get_param_bool("invert")) { - expand << (ext->get_param_float("expand") * 0.2125) << " " - << (ext->get_param_float("expand") * 0.7154) << " " - << (ext->get_param_float("expand") * 0.0721); - erode << (-ext->get_param_float("erode")); + expand << (ext->get_param_float("erode") * 0.2125) << " " + << (ext->get_param_float("erode") * 0.7154) << " " + << (ext->get_param_float("erode") * 0.0721); + erode << (-ext->get_param_float("expand")); } else { - expand << (-ext->get_param_float("expand") * 0.2125) << " " - << (-ext->get_param_float("expand") * 0.7154) << " " - << (-ext->get_param_float("expand") * 0.0721); - erode << ext->get_param_float("erode"); + expand << (-ext->get_param_float("erode") * 0.2125) << " " + << (-ext->get_param_float("erode") * 0.7154) << " " + << (-ext->get_param_float("erode") * 0.0721); + erode << ext->get_param_float("expand"); } _filter = g_strdup_printf( -- cgit v1.2.3