From: dooglus Date: Sun, 6 Apr 2008 19:27:12 +0000 (+0000) Subject: Set the canvas of the bline used by the circle tool. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=416201bdb31852582681f49e03faaaebd68a307e;p=synfig.git Set the canvas of the bline used by the circle tool. git-svn-id: http://svn.voria.com/code@1968 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/state_circle.cpp b/synfig-studio/trunk/src/gtkmm/state_circle.cpp index 733567b..3a1d4ac 100644 --- a/synfig-studio/trunk/src/gtkmm/state_circle.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_circle.cpp @@ -514,7 +514,7 @@ StateCircle_Context::make_circle(const Point& _p1, const Point& _p2) Layer::Handle layer; - Canvas::Handle canvas(get_canvas_view()->get_canvas()); + Canvas::Handle canvas; int depth(0); // we are temporarily using the layer to hold something @@ -560,6 +560,11 @@ StateCircle_Context::make_circle(const Point& _p1, const Point& _p2) // Set the looping flag value_node_bline->set_loop(true); + if(!canvas) + canvas=get_canvas_view()->get_canvas(); + + value_node_bline->set_member_canvas(canvas); + // count how many layers we're going to be creating int layers_to_create = this->layers_to_create();