From 8a00e8482008e1b81c49593f4c575f198aeb4ecc Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 8 Apr 2008 15:07:36 +0000 Subject: [PATCH] Use the background color for star layers if we're also creating a star outline at the same time. git-svn-id: http://svn.voria.com/code@1993 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_star.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/state_star.cpp b/synfig-studio/trunk/src/gtkmm/state_star.cpp index 0803b41..9000875 100644 --- a/synfig-studio/trunk/src/gtkmm/state_star.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_star.cpp @@ -614,6 +614,12 @@ StateStar_Context::make_star(const Point& _p1, const Point& _p2) layer->set_description(get_id()); get_canvas_interface()->signal_layer_new_description()(layer,layer->get_description()); + + if(get_layer_outline_flag()) + { + layer->set_param("color",synfigapp::Main::get_background_color()); + get_canvas_interface()->signal_layer_param_changed()(layer,"color"); + } } /////////////////////////////////////////////////////////////////////////// -- 2.7.4