Take the 'Focus Point' into account when transforming ducks for layers inside pasteca...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 22:07:47 +0000 (22:07 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 22:07:47 +0000 (22:07 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2274 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/canvasview.cpp

index a3764bb..0973da6 100644 (file)
@@ -2842,9 +2842,10 @@ CanvasView::rebuild_ducks_layer_(synfig::TransformStack& transform_stack, synfig
                        Vector origin(layer->get_param("origin").get(Vector()));
 
                        Canvas::Handle child_canvas(layer->get_param("canvas").get(Canvas::Handle()));
+                       Vector focus(child_canvas->rend_desc().get_focus());
 
                        if(!scale.is_equal_to(Vector(1,1)))
-                               transform_stack.push(new Transform_Scale(scale,origin));
+                               transform_stack.push(new Transform_Scale(scale,origin+focus));
                        if(!origin.is_equal_to(Vector(0,0)))
                                transform_stack.push(new Transform_Translate(origin));