From: Carlos Lopez Date: Wed, 15 Jul 2009 23:22:02 +0000 (+0200) Subject: Prevent a crash if there are not parameters selected. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=04e736f96597bb36dbd6b8059d785269369b3321;p=synfig.git Prevent a crash if there are not parameters selected. --- diff --git a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp index efd2cd1..cf44f76 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp @@ -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 gc(Gdk::GC::create(get_window())); const Real t_begin(time_adjustment_->get_lower());