Enable Stop button and ESC key to change to Normal Tool for the Circle, Draw,
[synfig.git] / synfig-studio / src / gtkmm / state_sketch.cpp
index b0d78f0..5db2044 100644 (file)
@@ -465,7 +465,9 @@ StateSketch_Context::event_yield_tool_options(const Smach::event& /*x*/)
 Smach::event_result
 StateSketch_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