When creating a 'SolidColor' layer, use the default background color, not foreground.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 26 Dec 2008 15:16:21 +0000 (15:16 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 26 Dec 2008 15:16:21 +0000 (15:16 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2323 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

index 8bac47f..f8f935e 100644 (file)
@@ -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());