Fix graphic glitch in eeschema when moving a field

Fixes #12061
https://gitlab.com/kicad/code/kicad/issues/12061
This commit is contained in:
Lorenzo Marcantonio 2022-07-22 08:56:12 +02:00 committed by jean-pierre charras
parent 5442d284f4
commit 593eaf7ea3
1 changed files with 4 additions and 3 deletions

View File

@ -2205,12 +2205,13 @@ void SCH_PAINTER::draw( const SCH_FIELD *aField, int aLayer )
if( drawingShadows )
{
bbox.Inflate( getTextThickness( aField ) * 2 );
bbox.RevertYAxis();
EDA_RECT shadow_box = bbox;
shadow_box.Inflate( getTextThickness( aField ) * 2 );
shadow_box.RevertYAxis();
m_gal->SetIsStroke( false );
m_gal->SetIsFill( true );
m_gal->DrawRectangle( mapCoords( bbox.GetPosition() ), mapCoords( bbox.GetEnd() ) );
m_gal->DrawRectangle( mapCoords( shadow_box.GetPosition() ), mapCoords( shadow_box.GetEnd() ) );
}
else
{