Module: synfig
Branch: genete_master
Commit: 04e736f96597bb36dbd6b8059d785269369b3321
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=04e736f96597bb36dbd6b8059d785269369b3321

Author: Carlos Lopez <car...@pcnuevo.(none)>
Date:   Thu Jul 16 01:22:02 2009 +0200

Prevent a crash if there are not parameters selected.

---

 synfig-studio/trunk/src/gtkmm/widget_curves.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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<Gdk::GC> gc(Gdk::GC::create(get_window()));
 
        const Real t_begin(time_adjustment_->get_lower());


------------------------------------------------------------------------------
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to