summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2011-06-23 17:28:36 +0000
committerJazzyNico <nicoduf@yahoo.fr>2011-06-23 17:28:36 +0000
commitbe8f9d57bfd58257cd4a41642aa2d4be69610fd0 (patch)
tree134b758923de5029ca33bc37bbb3cd59936eca49 /src
parentupdate file lists (diff)
downloadinkscape-be8f9d57bfd58257cd4a41642aa2d4be69610fd0.tar.gz
inkscape-be8f9d57bfd58257cd4a41642aa2d4be69610fd0.zip
Filters. Fix for a crash introduced with revision 10313.
(bzr r10349)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/extension/internal/filter/experimental.h12
1 files changed, 6 insertions, 6 deletions
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)
"</feMerge>\n"
"<feColorMatrix values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1.3 0 \" result=\"color5\" flood-opacity=\"0.56\" />\n"
"<feComposite in=\"%s\" in2=\"SourceGraphic\" operator=\"in\" result=\"composite8\" />\n"
- "</filter>\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());
+ "</filter>\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 */