X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fcontext.cpp;h=49e9843aa5d26742a7500da534dcae29bab2e462;hb=fdc6a114ef93e7728172b14cbd5da9cd7982d282;hp=3f8a4ab99c78f71fd1eba13bce7ec0e741600160;hpb=cc54c38609ee9745ad678e5e9b9d7d2912be9c95;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/context.cpp b/synfig-core/trunk/src/synfig/context.cpp index 3f8a4ab..49e9843 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); } @@ -308,7 +308,7 @@ Context::set_time(Time time)const } void -Context::set_time(Time time,const Vector &pos)const +Context::set_time(Time time,const Vector &/*pos*/)const { set_time(time); /*