Use the same number in the 'fill' as in the 'outline' when filling a stroke.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 1 Nov 2007 01:49:23 +0000 (01:49 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 1 Nov 2007 01:49:23 +0000 (01:49 +0000)
git-svn-id: http://svn.voria.com/code@1101 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/state_draw.cpp

index 22bfbe4..fbed951 100644 (file)
@@ -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<synfig::BLinePoint> 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"));