From be8f9d57bfd58257cd4a41642aa2d4be69610fd0 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Thu, 23 Jun 2011 19:28:36 +0200 Subject: Filters. Fix for a crash introduced with revision 10313. (bzr r10349) --- src/extension/internal/filter/experimental.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/extension/internal/filter/experimental.h b/src/extension/internal/filter/experimental.h index f60a6b414..96485ad97 100755 --- a/src/extension/internal/filter/experimental.h +++ b/src/extension/internal/filter/experimental.h @@ -301,7 +301,7 @@ CrossEngraving::get_filter_text (Inkscape::Extension::Extension * ext) * Smoothness strength (0.01->20, default 0.6) -> blur2 (stdDeviation) * Dilatation (1.->50., default 6) -> color2 (n-1th value) * Erosion (0.->50., default 2) -> color2 (nth value 0->-50) - * Transluscent (boolean, default false) -> composite 8 (in, true->merge1, false->color5) + * translucent (boolean, default false) -> composite 8 (in, true->merge1, false->color5) * Blur strength (0.01->20., default 1.) -> blur3 (stdDeviation) * Blur dilatation (1.->50., default 6) -> color4 (n-1th value) @@ -379,7 +379,7 @@ Drawing::get_filter_text (Inkscape::Extension::Extension * ext) std::ostringstream smooth; std::ostringstream dilat; std::ostringstream erosion; - std::ostringstream transluscent; + std::ostringstream translucent; std::ostringstream offset; std::ostringstream blur; std::ostringstream bdilat; @@ -401,10 +401,10 @@ Drawing::get_filter_text (Inkscape::Extension::Extension * ext) smooth << ext->get_param_float("smooth"); dilat << ext->get_param_float("dilat"); erosion << (- ext->get_param_float("erosion")); - if (ext->get_param_bool("transluscent")) - transluscent << "merge1"; + if (ext->get_param_bool("translucent")) + translucent << "merge1"; else - transluscent << "color5"; + translucent << "color5"; offset << ext->get_param_int("offset"); blur << ext->get_param_float("blur"); @@ -462,7 +462,7 @@ Drawing::get_filter_text (Inkscape::Extension::Extension * ext) "\n" "\n" "\n" - "\n", simply.str().c_str(), clean.str().c_str(), erase.str().c_str(), smooth.str().c_str(), dilat.str().c_str(), erosion.str().c_str(), blur.str().c_str(), bdilat.str().c_str(), berosion.str().c_str(), stroker.str().c_str(), strokeg.str().c_str(), strokeb.str().c_str(), ios.str().c_str(), strokea.str().c_str(), offset.str().c_str(), offset.str().c_str(), fillr.str().c_str(), fillg.str().c_str(), fillb.str().c_str(), iof.str().c_str(), filla.str().c_str(), transluscent.str().c_str()); + "\n", simply.str().c_str(), clean.str().c_str(), erase.str().c_str(), smooth.str().c_str(), dilat.str().c_str(), erosion.str().c_str(), blur.str().c_str(), bdilat.str().c_str(), berosion.str().c_str(), stroker.str().c_str(), strokeg.str().c_str(), strokeb.str().c_str(), ios.str().c_str(), strokea.str().c_str(), offset.str().c_str(), offset.str().c_str(), fillr.str().c_str(), fillg.str().c_str(), fillb.str().c_str(), iof.str().c_str(), filla.str().c_str(), translucent.str().c_str()); return _filter; }; /* Drawing filter */ -- cgit v1.2.3