Zoom layers change the size of their content's bounding box. Fixed the get_full_boun...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 23 Mar 2007 21:06:51 +0000 (21:06 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 23 Mar 2007 21:06:51 +0000 (21:06 +0000)
git-svn-id: http://svn.voria.com/code@377 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/lyr_std/zoom.cpp

index 0f0c85b..d8a88bc 100644 (file)
@@ -158,6 +158,5 @@ Zoom::accelerated_render(Context context,Surface *surface,int quality, const Ren
 synfig::Rect
 Zoom::get_full_bounding_rect(synfig::Context context)const
 {
-       return context.get_full_bounding_rect();
+       return (context.get_full_bounding_rect()-center)*exp(amount)+center;
 }
-