From 05dbfcbf51ce0991a27fa64b96d470dbaa106e08 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 31 Mar 2007 19:01:45 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/modules/mod_geometry/rectangle.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.7.4