X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flayer.cpp;h=2ff73c4a58257a623130bafe703ae757ac38a596;hb=816582bba8cc8db9ce99502ac12804e184b3e2c6;hp=d8676d9b6bbce9fff08658d120bd925ff87f741f;hpb=f3b39e2e128f666292ae448740900748e3fe19a2;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/layer.cpp b/synfig-core/trunk/src/synfig/layer.cpp index d8676d9..2ff73c4 100644 --- a/synfig-core/trunk/src/synfig/layer.cpp +++ b/synfig-core/trunk/src/synfig/layer.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -313,8 +314,8 @@ Layer::clone(const GUID& deriv_guid) const ret->set_guid(get_guid()^deriv_guid); //ret->set_param_list(get_param_list()); - // Process the parameter list sothat - // we can duplicate any inlinecanvases + // Process the parameter list so that + // we can duplicate any inline canvases ParamList param_list(get_param_list()); for(ParamList::const_iterator iter(param_list.begin()); iter != param_list.end(); ++iter) { @@ -325,8 +326,8 @@ Layer::clone(const GUID& deriv_guid) const Canvas::Handle canvas(iter->second.get(Canvas::Handle())); if(canvas && canvas->is_inline()) { - // This parameter is an inlinecanvas! we need to clone it - // before we set it as aparameter. + // This parameter is an inline canvas! we need to clone it + // before we set it as a parameter. Canvas::Handle new_canvas(canvas->clone(deriv_guid)); ValueBase value(new_canvas); ret->set_param(iter->first, value); @@ -342,7 +343,7 @@ Layer::clone(const GUID& deriv_guid) const DynamicParamList::const_iterator iter; for(iter=dynamic_param_list().begin();iter!=dynamic_param_list().end();++iter) { - // Make sure we clone inlinecanvases + // Make sure we clone inline canvases if(iter->second->get_type()==ValueBase::TYPE_CANVAS) { Canvas::Handle canvas((*iter->second)(0).get(Canvas::Handle()));