Revision: 2056
          http://synfig.svn.sourceforge.net/synfig/?rev=2056&view=rev
Author:   genete
Date:     2008-09-14 20:34:26 +0000 (Sun, 14 Sep 2008)

Log Message:
-----------
Fix bug [ 2096641 ] Thrown exception when all Cpoints are removed in the 
gradient editor

Modified Paths:
--------------
    synfig-studio/trunk/src/gtkmm/widget_gradient.cpp

Modified: synfig-studio/trunk/src/gtkmm/widget_gradient.cpp
===================================================================
--- synfig-studio/trunk/src/gtkmm/widget_gradient.cpp   2008-09-14 04:46:31 UTC 
(rev 2055)
+++ synfig-studio/trunk/src/gtkmm/widget_gradient.cpp   2008-09-14 20:34:26 UTC 
(rev 2056)
@@ -295,6 +295,7 @@
                case GDK_MOTION_NOTIFY:
                        if(editable_ && y>get_height()-CONTROL_HEIGHT)
                        {
+                               if(!gradient_.size()) return true;
                                Gradient::iterator 
iter(gradient_.find(selected_cpoint));
 
                                if(event->button.state&GDK_SHIFT_MASK)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to