Prevent a crash if there are not parameters selected.
authorCarlos Lopez <carlos@pcnuevo.(none)>
Wed, 15 Jul 2009 23:22:02 +0000 (01:22 +0200)
committerCarlos Lopez <carlos@pcnuevo.(none)>
Thu, 16 Jul 2009 12:55:55 +0000 (14:55 +0200)
synfig-studio/trunk/src/gtkmm/widget_curves.cpp

index efd2cd1..cf44f76 100644 (file)
@@ -474,6 +474,9 @@ Widget_Curves::redraw(GdkEventExpose */*bleh*/)
        if(!time_adjustment_ || !range_adjustment_ || !h || !w)
                return false;
 
+       if(!curve_list_.size())
+               return false;
+
        Glib::RefPtr<Gdk::GC> gc(Gdk::GC::create(get_window()));
 
        const Real t_begin(time_adjustment_->get_lower());