From 7cac384dc4dd35cc31e3cd16064747267e576b98 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 19 Feb 2008 18:51:23 +0000 Subject: [PATCH] Use ValueNode_DynamicList::set_member_canvas() to set the canvas for each blinepoint in newly drawn shapes. git-svn-id: http://svn.voria.com/code@1762 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_draw.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/state_draw.cpp b/synfig-studio/trunk/src/gtkmm/state_draw.cpp index 6122064..646afa7 100644 --- a/synfig-studio/trunk/src/gtkmm/state_draw.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_draw.cpp @@ -936,6 +936,11 @@ StateDraw_Context::new_bline(std::list bline,bool loop_bline trans_bline.push_back(bline_point); } value_node=ValueNode_BLine::create(synfig::ValueBase(trans_bline,loop_bline_flag)); + + Canvas::Handle canvas(get_canvas_view()->get_canvas()); + Layer::Handle layer(get_canvas_view()->get_selection_manager()->get_selected_layer()); + if (layer) canvas=layer->get_canvas(); + value_node->set_member_canvas(canvas); } Smach::event_result result; -- 2.7.4