Fix 2120629: "circles with large feather and zero radius are invisible". Only shortc...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 20 Sep 2008 15:02:11 +0000 (15:02 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 20 Sep 2008 15:02:11 +0000 (15:02 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2062 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_geometry/circle.cpp

index c9b1292..f5ad99b 100644 (file)
@@ -306,7 +306,7 @@ Circle::FALLOFF_FUNC *Circle::GetFalloffFunc()const
 Color
 Circle::get_color(Context context, const Point &point)const
 {
-       if(radius==0 || is_disabled())
+       if(is_disabled() || (radius==0 && invert==false && !feather))
                return context.get_color(point);
 
 
@@ -415,7 +415,7 @@ bool
 Circle::accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const
 {
        // trivial case
-       if(is_disabled() || (radius==0 && invert==false))
+       if(is_disabled() || (radius==0 && invert==false && !feather))
                return context.accelerated_render(surface,quality, renddesc, cb);
 
        // Another trivial case