From: dooglus Date: Fri, 26 Dec 2008 15:16:21 +0000 (+0000) Subject: When creating a 'SolidColor' layer, use the default background color, not foreground. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c46da089b3a73139062b5d55e0dd3c18963d69fb;p=synfig.git When creating a 'SolidColor' layer, use the default background color, not foreground. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2323 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp index 8bac47f..f8f935e 100644 --- a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp +++ b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp @@ -216,6 +216,8 @@ CanvasInterface::add_layer_to(synfig::String name, synfig::Canvas::Handle canvas // Apply some defaults if(layer->set_param("fg",synfigapp::Main::get_foreground_color())) layer->set_param("bg",synfigapp::Main::get_background_color()); + else if (name == "SolidColor") + layer->set_param("color",synfigapp::Main::get_background_color()); else layer->set_param("color",synfigapp::Main::get_foreground_color());