From: dooglus Date: Sat, 29 Sep 2007 15:09:11 +0000 (+0000) Subject: Prevent a crash (for example when moving the mouse slowly over the bottom edge of... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ddf6b82e3030768f6ca98adabdf67abd75703d98;p=synfig.git Prevent a crash (for example when moving the mouse slowly over the bottom edge of the line in dooglus.rincevent.net/synfig/shape_crash.sifz at the default zoom level). git-svn-id: http://svn.voria.com/code@800 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/layer_shape.cpp b/synfig-core/trunk/src/synfig/layer_shape.cpp index 3a9c52d..1b16245 100644 --- a/synfig-core/trunk/src/synfig/layer_shape.cpp +++ b/synfig-core/trunk/src/synfig/layer_shape.cpp @@ -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;