Module: synfig
Branch: genete_curves_dock
Commit: 5ba12a90d4a47383225692a7a7b43798f9e8cbd2
URL:
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=5ba12a90d4a47383225692a7a7b43798f9e8cbd2
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());
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl