From bea2b75edf4c73c23938abc4f1aa8952c41d6847 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 6 Nov 2008 17:29:46 +0000 Subject: [PATCH] Update the scrollbar that controls the time ruler along the bottom of the canvas when the start and end time of the movie is modified. Previously it wasn't updating immediately. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2162 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index b2263f6..18cfb43 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1980,6 +1980,18 @@ CanvasView::refresh_rend_desc() } //clamp time to big bounds... + if(time_window_adjustment().get_value() < begin_time) + { + time_window_adjustment().set_value(begin_time); + time_window_adjustment().value_changed(); + } + + if(time_window_adjustment().get_value() + time_window_adjustment().get_page_size() > end_time) + { + time_window_adjustment().set_value(end_time - time_window_adjustment().get_page_size()); + time_window_adjustment().value_changed(); + } + if(time_adjustment().get_value() < begin_time) { time_adjustment().set_value(begin_time); -- 2.7.4