From 51ad9324b6978ff2b7bf607b2af7727201f667e0 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 24 Mar 2007 02:32:23 +0000 Subject: [PATCH] Fix a bug where inactive layers (transform, scale, etc) were having an effect on the bounding rectangle. Notice the change brings this function's behaviour into line with that of get_color() and hit_check() in this file. git-svn-id: http://svn.voria.com/code@378 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/context.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synfig-core/trunk/src/synfig/context.cpp b/synfig-core/trunk/src/synfig/context.cpp index 3f8a4ab..247dac1 100644 --- a/synfig-core/trunk/src/synfig/context.cpp +++ b/synfig-core/trunk/src/synfig/context.cpp @@ -128,10 +128,10 @@ Context::get_full_bounding_rect()const ++context; } - if(context->empty()) - return Rect::zero(); + // If this layer isn't defined, return zero-sized rectangle + if(context->empty()) return Rect::zero(); - return (*context)->get_full_bounding_rect(*this+1); + return (*context)->get_full_bounding_rect(context+1); } -- 2.7.4