Prevent a crash (for example when moving the mouse slowly over the bottom edge of...
[synfig.git] / synfig-core / trunk / src / synfig / layer_shape.cpp
index 3a9c52d..1b16245 100644 (file)
@@ -233,7 +233,7 @@ struct MonoSegment
 
        int intersect(Real x,Real y) const
        {
-               if((y < aabb.miny) || (y > aabb.maxy) || (x < aabb.minx)) return 0;
+               if((y < aabb.miny+EPSILON) || (y > aabb.maxy) || (x < aabb.minx)) return 0;
                if(x > aabb.maxx) return ydir;
 
                //int i = 0;