From: dooglus Date: Sat, 31 Mar 2007 19:01:45 +0000 (+0000) Subject: Fix 1689329: if the inverted rectangle we're rendering doesn't overlap the tile we... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=05dbfcbf51ce0991a27fa64b96d470dbaa106e08;p=synfig.git Fix 1689329: if the inverted rectangle we're rendering doesn't overlap the tile we're rendering at all, don't attempt to draw its outlines. Doing so can result in us drawing outside the tile's allocated memory. git-svn-id: http://svn.voria.com/code@398 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_geometry/rectangle.cpp b/synfig-core/trunk/src/modules/mod_geometry/rectangle.cpp index 55029df..d0831e2 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/rectangle.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/rectangle.cpp @@ -419,6 +419,7 @@ Rectangle::accelerated_render(Context context,Surface *surface,int quality, cons Surface::pen pen(surface->get_pen(left,top)); subimage.blit_to(pen); } + else return true; } Surface::alpha_pen pen;