From c46da089b3a73139062b5d55e0dd3c18963d69fb Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 26 Dec 2008 15:16:21 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/synfigapp/canvasinterface.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); -- 2.7.4