Changing the time slider on a child canvas wasn't updating the grandchild canvas...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 2 Oct 2007 14:28:52 +0000 (14:28 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 2 Oct 2007 14:28:52 +0000 (14:28 +0000)
git-svn-id: http://svn.voria.com/code@813 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

index ba49e88..825284c 100644 (file)
@@ -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<CanvasInterface> interface = get_instance()->find_canvas_interface(*iter))
                        interface->set_time(interface->get_canvas()->get_time());