Merge branch 'master' of ssh://genete@synfig.git.sourceforge.net/gitroot/synfig/synfig
[synfig.git] / synfig-studio / src / gtkmm / state_width.cpp
index 1c7ef4f..8c74daa 100644 (file)
@@ -39,6 +39,7 @@
 #include <synfigapp/action_system.h>
 
 #include "state_width.h"
+#include "state_normal.h"
 #include "canvasview.h"
 #include "workarea.h"
 #include "app.h"
@@ -356,7 +357,9 @@ StateWidth_Context::~StateWidth_Context()
 Smach::event_result
 StateWidth_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