From: dooglus Date: Fri, 2 Mar 2007 16:00:17 +0000 (+0000) Subject: Fix 1671884: The origin of PasteCanvas layers wasn't being taken into account when... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bd542362f126f3a27639745e71724bec2b295c66;p=synfig.git Fix 1671884: The origin of PasteCanvas layers wasn't being taken into account when calculating whether a PasteCanvas's bounding box overlapped with the rest of the scene. git-svn-id: http://svn.voria.com/code@260 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp b/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp index e82c3d4..3f83cab 100644 --- a/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp +++ b/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp @@ -325,7 +325,7 @@ Layer_PasteCanvas::accelerated_render(Context context,Surface *surface,int quali blend_method=Color::BLEND_STRAIGHT; } else - if(!etl::intersect(context.get_full_bounding_rect(),full_bounding_rect)) + if(!etl::intersect(context.get_full_bounding_rect(),full_bounding_rect+origin)) { if(Color::is_onto(blend_method)) return true;