X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgtkmm%2Fstate_zoom.cpp;h=a167639c8b3d0e5c1fc7beff03bf21b3566e32b6;hb=c2ec9c5bdc4e8b21ab86a5a1c0825b07003f28c3;hp=57a252201f2ad596c9f84596fddc75cd93bda14c;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-studio/src/gtkmm/state_zoom.cpp b/synfig-studio/src/gtkmm/state_zoom.cpp index 57a2522..a167639 100644 --- a/synfig-studio/src/gtkmm/state_zoom.cpp +++ b/synfig-studio/src/gtkmm/state_zoom.cpp @@ -38,6 +38,7 @@ #include "state_zoom.h" +#include "state_normal.h" #include "event_mouse.h" #include "canvasview.h" #include "workarea.h" @@ -164,7 +165,9 @@ StateZoom_Context::~StateZoom_Context() Smach::event_result StateZoom_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