From 5ca25a609ea8ec538334df35b3cd65dc45f3ab2f Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sat, 27 Feb 2021 12:09:06 -0500 Subject: [PATCH] Pcbnew: fix shadow variable in expression evaluator. --- pcbnew/pcb_expr_evaluator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_expr_evaluator.cpp b/pcbnew/pcb_expr_evaluator.cpp index 1b9577264a..946c78d12a 100644 --- a/pcbnew/pcb_expr_evaluator.cpp +++ b/pcbnew/pcb_expr_evaluator.cpp @@ -206,10 +206,10 @@ static void insideCourtyard( LIBEVAL::CONTEXT* aCtx, void* self ) if( i != board->m_InsideCourtyardCache.end() ) return i->second; - bool result = realInsideFootprint( footprint ); + bool insideFootprint = realInsideFootprint( footprint ); board->m_InsideCourtyardCache[ key ] = result; - return result; + return insideFootprint; }; if( arg->AsString() == "A" )