From: dooglus Date: Wed, 6 Feb 2008 17:41:50 +0000 (+0000) Subject: Make sure the time entry box shows the correct time - rounded to an integer number... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ee7cac0ad3dd781264c014897a821890b7e335b6;p=synfig.git Make sure the time entry box shows the correct time - rounded to an integer number of frames. git-svn-id: http://svn.voria.com/code@1608 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index d439d9e..2f1a372 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1057,6 +1057,13 @@ void CanvasView::on_current_time_widget_changed() { set_time(current_time_widget->get_value()); + + // show the value being used - it will have been rounded to nearest frame + // this was already being done elsewhere, but only if the time was really changed; + // if the current time was 6f and the user edited it to 6.1f, then the 6.1f would + // be left in the display without the following line to fix it + current_time_widget->set_value(get_time()); + current_time_widget->set_position(-1); // leave the cursor at the end } // Gtk::Widget*