Fix lambda capture in ACTION_TOOLBAR

This commit is contained in:
Ian McInerney 2022-09-25 01:58:45 +01:00
parent 28165c6a31
commit 3a297093e6
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} ); } );