Fix a bug where inactive layers (transform, scale, etc) were having an effect on...
[synfig.git] / synfig-core / trunk / src / synfig / context.cpp
index 3f8a4ab..247dac1 100644 (file)
@@ -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);
 }