From 17db38a8803db1a9deebfa02a45c351f7325063e Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 22 Jan 2008 12:30:07 +0000 Subject: [PATCH] There's no need to use a new variable here. git-svn-id: http://svn.voria.com/code@1415 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/layer_composite.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/synfig-core/trunk/src/synfig/layer_composite.cpp b/synfig-core/trunk/src/synfig/layer_composite.cpp index 7381017..2c20204 100644 --- a/synfig-core/trunk/src/synfig/layer_composite.cpp +++ b/synfig-core/trunk/src/synfig/layer_composite.cpp @@ -155,16 +155,14 @@ Layer_Composite::set_param(const String & param, const ValueBase &value) else if(param=="blend_method" && value.same_type_as(int())) { - Color::BlendMethod blend_method = static_cast(value.get(int())); + blend_method_ = static_cast(value.get(int())); - if (blend_method < 0 || blend_method >= Color::BLEND_END) + if (blend_method_ < 0 || blend_method_ >= Color::BLEND_END) { - warning("illegal value (%d) for blend_method - using Composite instead", blend_method); + warning("illegal value (%d) for blend_method - using Composite instead", blend_method_); blend_method_ = Color::BLEND_COMPOSITE; return false; } - - blend_method_ = blend_method; } else return Layer::set_param(param,value); -- 2.7.4