From a817dfdca9cd466c59d85a3a29104bb39e7f6f88 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 1 Nov 2007 01:49:23 +0000 Subject: [PATCH] Use the same number in the 'fill' as in the 'outline' when filling a stroke. git-svn-id: http://svn.voria.com/code@1101 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_draw.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/state_draw.cpp b/synfig-studio/trunk/src/gtkmm/state_draw.cpp index 22bfbe4..fbed951 100644 --- a/synfig-studio/trunk/src/gtkmm/state_draw.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_draw.cpp @@ -100,6 +100,7 @@ class studio::StateDraw_Context : public sigc::trackable SigC::Connection process_queue_connection; ValueNode_BLine::Handle last_stroke; + synfig::String last_stroke_id; Gtk::Menu menu; @@ -1054,8 +1055,9 @@ StateDraw_Context::new_bline(std::list bline,bool loop_bline //refresh_ducks(); } - increment_id(); last_stroke=value_node; + last_stroke_id=get_id(); + increment_id(); return Smach::RESULT_ACCEPT; } @@ -1525,7 +1527,7 @@ StateDraw_Context::fill_last_stroke() layer=get_canvas_interface()->add_layer("region"); assert(layer); layer->set_param("color",synfigapp::Main::get_background_color()); - layer->set_description(get_id() + _(" Fill")); + layer->set_description(last_stroke_id + _(" Fill")); synfigapp::Action::Handle action(synfigapp::Action::create("layer_param_connect")); -- 2.7.4