Don't let feather be negative for any Shape layers.
[synfig.git] / synfig-core / trunk / src / synfig / layer_shape.cpp
index dc6f937..c24efb3 100644 (file)
@@ -6,7 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-**     Copyright (c) 2007 Chris Moore
+**     Copyright (c) 2007, 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -947,7 +947,7 @@ struct PenMark
        void setcover(Real c, Real a)                           { cover = c; area = a; }
        void addcover(Real c, Real a)                           { cover += c; area += a; }
 
-       bool operator < (const PenMark &rhs) const
+       bool operator<(const PenMark &rhs) const
        {
                return y == rhs.y ? x < rhs.x : y < rhs.y;
        }
@@ -1157,7 +1157,7 @@ Layer_Shape::set_param(const String & param, const ValueBase &value)
        IMPORT(offset);
        IMPORT(invert);
        IMPORT(antialias);
-       IMPORT(feather);
+       IMPORT_PLUS(feather, if(feather<0)feather=0;);
        IMPORT(blurtype);
        IMPORT(winding_style);