From ea0707a6f1b0055324197833c41991fca51cd010 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 13 Oct 2007 03:05:29 +0000 Subject: [PATCH] Don't set_time() twice for the current canvas. git-svn-id: http://svn.voria.com/code@920 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/canvasinterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp index 45c307f..1d8a820 100644 --- a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp +++ b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp @@ -108,8 +108,9 @@ CanvasInterface::set_time(synfig::Time x) // update the time in all the child canvases Canvas::Children children = get_canvas()->get_root()->children(); + handle interface; for (Canvas::Children::iterator iter = children.begin(); iter != children.end(); iter++) - if (handle interface = get_instance()->find_canvas_interface(*iter)) + if ((interface = get_instance()->find_canvas_interface(*iter)) != this) interface->set_time(interface->get_canvas()->get_time()); signal_time_changed()(); -- 2.7.4