Fix two copy/paste errors.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 22:07:26 +0000 (22:07 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 22:07:26 +0000 (22:07 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2273 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 791f87f..a3764bb 100644 (file)
@@ -2845,12 +2845,12 @@ CanvasView::rebuild_ducks_layer_(synfig::TransformStack& transform_stack, synfig
 
                        if(!scale.is_equal_to(Vector(1,1)))
                                transform_stack.push(new Transform_Scale(scale,origin));
-                       if(!scale.is_equal_to(Vector(0,0)))
+                       if(!origin.is_equal_to(Vector(0,0)))
                                transform_stack.push(new Transform_Translate(origin));
 
                        rebuild_ducks_layer_(transform_stack,child_canvas,selected_list);
 
-                       if(!scale.is_equal_to(Vector(0,0)))
+                       if(!origin.is_equal_to(Vector(0,0)))
                                transform_stack.pop();
                        if(!scale.is_equal_to(Vector(1,1)))
                                transform_stack.pop();