From: dooglus Date: Tue, 2 Oct 2007 14:28:52 +0000 (+0000) Subject: Changing the time slider on a child canvas wasn't updating the grandchild canvas... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cc40453812ad15727a94bf91371facf1e18d1d4e;p=synfig.git Changing the time slider on a child canvas wasn't updating the grandchild canvas' time slider. Now it does. git-svn-id: http://svn.voria.com/code@813 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp index ba49e88..825284c 100644 --- a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp +++ b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp @@ -106,7 +106,7 @@ CanvasInterface::set_time(synfig::Time x) get_canvas()->set_time(cur_time_=x); // update the time in all the child canvases - Canvas::Children children = get_canvas()->children(); + Canvas::Children children = get_canvas()->get_root()->children(); for (Canvas::Children::iterator iter = children.begin(); iter != children.end(); iter++) if (handle interface = get_instance()->find_canvas_interface(*iter)) interface->set_time(interface->get_canvas()->get_time());