ports/cad/kicad/files/patch-common_tool_tool__manager.cpp
Thierry Thomas 5622662fab Upgrade Kicad to 4.0.7 (the latest stable release).
The libraries are released separately: create a new port cad/kicad-library.
2017-07-17 17:43:23 +00:00

25 lines
933 B
C++

--- common/tool/tool_manager.cpp.orig 2017-07-14 19:17:29 UTC
+++ common/tool/tool_manager.cpp
@@ -27,6 +27,7 @@
#include <list>
#include <stack>
#include <algorithm>
+#include <functional>
#include <boost/foreach.hpp>
#include <boost/scoped_ptr.hpp>
@@ -542,11 +543,12 @@ void TOOL_MANAGER::dispatchInternal( con
if( st->cofunc )
st->Push();
+// Patch obtained from https://git.archlinux.org/svntogit/community.git/tree/trunk/boost-1.61.patch?h=packages/kicad
+ st->cofunc = new COROUTINE<int, const TOOL_EVENT&>( tr.second );
+
// as the state changes, the transition table has to be set up again
st->transitions.clear();
- st->cofunc = new COROUTINE<int, const TOOL_EVENT&>( tr.second );
-
// got match? Run the handler.
st->cofunc->Call( aEvent );