Fix lambda capture in ACTION_TOOLBAR
This commit is contained in:
parent
28165c6a31
commit
3a297093e6
|
@ -594,7 +594,7 @@ void ACTION_TOOLBAR::onPaletteEvent( wxCommandEvent& aEvent )
|
||||||
|
|
||||||
// Find the action corresponding to the button press
|
// Find the action corresponding to the button press
|
||||||
auto actionIt = std::find_if( group->GetActions().begin(), group->GetActions().end(),
|
auto actionIt = std::find_if( group->GetActions().begin(), group->GetActions().end(),
|
||||||
[=]( const TOOL_ACTION* aAction )
|
[&]( const TOOL_ACTION* aAction )
|
||||||
{
|
{
|
||||||
return aAction->GetUIId() == aEvent.GetId();
|
return aAction->GetUIId() == aEvent.GetId();
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue