Don't allow negative feather parameters for circles (or for the example 'filled rect...
[synfig.git] / synfig-core / trunk / src / modules / mod_geometry / circle.cpp
index 4c38f45..db2983d 100644 (file)
@@ -78,7 +78,7 @@ Circle::ImportParameters(const String &param, const ValueBase &value)
                                        set_blend_method(Color::BLEND_ALPHA_OVER);
                                        color.set_a(1); } else transparent_color_ = true; } });
        IMPORT(radius);
-       IMPORT(feather);
+       IMPORT_PLUS(feather, if(feather<0)feather=0;);
        IMPORT(invert);
        IMPORT(pos);
        IMPORT(falloff);