From: dooglus Date: Tue, 25 Nov 2008 22:33:25 +0000 (+0000) Subject: Fix a bug that only shows up if you use the 'Focus Point' setting in the document... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0091b35d420855725b0c655c0f09f181294fcd5f;p=synfig.git Fix a bug that only shows up if you use the 'Focus Point' setting in the document properties dialog. This is the same a bug 1671884 and bug 1993098, but for the focus point rather than the 'origin' and 'zoom' respectively. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2275 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 f8006e4..553d551 100644 --- a/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp +++ b/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp @@ -413,7 +413,7 @@ Layer_PasteCanvas::accelerated_render(Context context,Surface *surface,int quali if (blend_method==Color::BLEND_COMPOSITE) blend_using_straight = true; } - if (!etl::intersect(context.get_full_bounding_rect(),(full_bounding_rect*exp(zoom))+origin)) + if (!etl::intersect(context.get_full_bounding_rect(),(full_bounding_rect-canvas->rend_desc().get_focus())*exp(zoom)+origin+canvas->rend_desc().get_focus())) { // if there's no intersection between the context and our // surface, and we're rendering 'onto', then we're done