summaryrefslogtreecommitdiff
path: root/cad/kicad/patches/patch-common_tool_tool_manager.cpp
blob: 761d35cb6a93c89e1d05bc3f8a78e505df678889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-common_tool_tool_manager.cpp,v 1.1 2016/09/08 09:32:28 bouyer Exp $
Fix for newer boost, from upstream developement branch

--- common/tool/tool_manager.cpp.orig	2016-09-03 22:47:46.000000000 +0200
+++ common/tool/tool_manager.cpp	2016-09-07 19:03:09.000000000 +0200
@@ -542,11 +542,11 @@
                     if( st->cofunc )
                         st->Push();
 
+                    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 );