From: dooglus Date: Wed, 6 Feb 2008 01:35:57 +0000 (+0000) Subject: Fix a crash when editing a waypoint with a non-static value. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ceec3f1ccafc99fa6f929ec47905216b471c92c6;p=synfig.git Fix a crash when editing a waypoint with a non-static value. git-svn-id: http://svn.voria.com/code@1598 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/widget_waypoint.cpp b/synfig-studio/trunk/src/gtkmm/widget_waypoint.cpp index 1644ac4..94ecb45 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_waypoint.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_waypoint.cpp @@ -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());