Fix a crash when editing a waypoint with a non-static value.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 6 Feb 2008 01:35:57 +0000 (01:35 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 6 Feb 2008 01:35:57 +0000 (01:35 +0000)
git-svn-id: http://svn.voria.com/code@1598 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/widget_waypoint.cpp

index 1644ac4..94ecb45 100644 (file)
@@ -263,7 +263,8 @@ Widget_Waypoint::get_waypoint()const
 {
 #warning This too!
        waypoint.set_time(time_widget->get_value());
-       waypoint.set_value(value_widget->get_value());
+       if(waypoint.is_static())
+               waypoint.set_value(value_widget->get_value());
        //int i;
 
        waypoint.set_before((synfig::Waypoint::Interpolation)before->get_history());