X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fcontext.cpp;h=1ebc6368606972bc117c313b2cd0adb71bb2ba0f;hb=6390167d6b2b1fdd04505017b8ec43b18ac167b8;hp=60847fe16bd05159ff8b60275da6547b8d0db55f;hpb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/context.cpp b/synfig-core/trunk/src/synfig/context.cpp index 60847fe..1ebc636 100644 --- a/synfig-core/trunk/src/synfig/context.cpp +++ b/synfig-core/trunk/src/synfig/context.cpp @@ -1,8 +1,8 @@ /* === S Y N F I G ========================================================= */ -/*! \file template.cpp +/*! \file context.cpp ** \brief Template File ** -** $Id: context.cpp,v 1.4 2005/01/24 05:00:18 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -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); } @@ -286,7 +286,7 @@ Context::set_time(Time time)const // If this layer isn't defined, just return if((context)->empty()) return; - // Set up a wrter lock + // Set up a writer lock RWLock::WriterLock lock((*context)->get_rw_lock()); //synfig::info("%s: dirty_time=%f",(*context)->get_name().c_str(),(float)(*context)->dirty_time_); @@ -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); /*