From 8aa7e8d9f4a04167f224c0f4bf2e58fade72eece Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 16 Sep 2021 10:29:24 +0200 Subject: [PATCH] Fix compil warning (shadowed vars) --- eeschema/sch_painter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index a3e1e40c90..dcee373d0d 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -1071,15 +1071,15 @@ void SCH_PAINTER::draw( LIB_PIN *aPin, int aLayer ) }; auto drawText = - [&]( const wxString& text, const VECTOR2D& pos, double angle ) + [&]( const wxString& aText, const VECTOR2D& aPos, double aAngle ) { - if( text.IsEmpty() ) + if( aText.IsEmpty() ) return; if( drawingShadows && eeconfig()->m_Selection.text_as_box ) - boxText( text, pos, angle ); + boxText( aText, aPos, aAngle ); else - strokeText( text, pos, angle ); + strokeText( aText, aPos, aAngle ); }; switch( orient )