From f8e9542004c3b198485bdfb01ad49e359948941e Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 18 Jun 2021 12:18:28 -0400 Subject: [PATCH] Fix crash when opening board setup after zone filler exits --- pcbnew/tools/zone_filler_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/zone_filler_tool.cpp b/pcbnew/tools/zone_filler_tool.cpp index b0b5392375..3be0e99d64 100644 --- a/pcbnew/tools/zone_filler_tool.cpp +++ b/pcbnew/tools/zone_filler_tool.cpp @@ -126,7 +126,7 @@ void ZONE_FILLER_TOOL::FillAllZones( wxWindow* aCaller, PROGRESS_REPORTER* aRepo button->Bind( wxEVT_COMMAND_HYPERLINK, std::function( - [&]( wxHyperlinkEvent& aEvent ) + [frame]( wxHyperlinkEvent& aEvent ) { frame->ShowBoardSetupDialog( _( "Rules" ) ); } ) );