Module: synfig
Branch: zelgadis_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());
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl