From 04e736f96597bb36dbd6b8059d785269369b3321 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Thu, 16 Jul 2009 01:22:02 +0200 Subject: [PATCH] Prevent a crash if there are not parameters selected. --- synfig-studio/trunk/src/gtkmm/widget_curves.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()); -- 2.7.4