X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flayer_solidcolor.cpp;h=0b520adcf7ed824926acd5c815c5c40804b18c71;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=5e226e4895228610a22d74aaeb482c33b6bcfabc;hpb=8ef042c40521681cea99944097c4f90a5ac6cf74;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/layer_solidcolor.cpp b/synfig-core/trunk/src/synfig/layer_solidcolor.cpp index 5e226e4..0b520ad 100644 --- a/synfig-core/trunk/src/synfig/layer_solidcolor.cpp +++ b/synfig-core/trunk/src/synfig/layer_solidcolor.cpp @@ -1,12 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file layer_solidcolor.cpp -** \brief Template Header +** \brief Implementation of the "Solid Color" layer ** ** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 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 @@ -72,7 +72,9 @@ Layer_SolidColor::Layer_SolidColor(): bool Layer_SolidColor::set_param(const String & param, const ValueBase &value) { - IMPORT(color); + IMPORT_PLUS(color, { if (color.get_a() == 0) { if (converted_blend_) { + set_blend_method(Color::BLEND_ALPHA_OVER); + color.set_a(1); } else transparent_color_ = true; } }); return Layer_Composite::set_param(param,value); }