Fix compil warning (shadowed vars)

This commit is contained in:
jean-pierre charras 2021-09-16 10:29:24 +02:00
parent 1f8b72c194
commit 8aa7e8d9f4
1 changed files with 4 additions and 4 deletions

View File

@ -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 )