Fix a crash when editing a waypoint with a non-static value.
[synfig.git] / synfig-studio / trunk / src / gtkmm / widget_waypoint.cpp
index 5f61130..94ecb45 100644 (file)
@@ -1,8 +1,8 @@
 /* === S Y N F I G ========================================================= */
-/*!    \file dialog_waypoint.cpp
+/*!    \file widget_waypoint.cpp
 **     \brief Template Header
 **
-**     $Id: widget_waypoint.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
+**     $Id$
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@ -43,6 +43,8 @@
 #include <gtkmm/optionmenu.h>
 #include "widget_time.h"
 #include "widget_waypoint.h"
+#include "general.h"
+
 #endif
 
 using namespace synfig;
@@ -261,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());