Enable Stop button and ESC key to change to Normal Tool for the Circle, Draw,
[synfig.git] / synfig-studio / src / gtkmm / state_gradient.cpp
index c0fd022..bc6c3ad 100644 (file)
@@ -368,7 +368,9 @@ StateGradient_Context::~StateGradient_Context()
 Smach::event_result
 StateGradient_Context::event_stop_handler(const Smach::event& /*x*/)
 {
-       throw Smach::egress_exception();
+       //throw Smach::egress_exception();
+       throw &state_normal;
+       return Smach::RESULT_OK;
 }
 
 Smach::event_result