Fix graphic glitch in eeschema when moving a field
Fixes #12061 https://gitlab.com/kicad/code/kicad/issues/12061
This commit is contained in:
parent
5442d284f4
commit
593eaf7ea3
|
@ -2205,12 +2205,13 @@ void SCH_PAINTER::draw( const SCH_FIELD *aField, int aLayer )
|
||||||
|
|
||||||
if( drawingShadows )
|
if( drawingShadows )
|
||||||
{
|
{
|
||||||
bbox.Inflate( getTextThickness( aField ) * 2 );
|
EDA_RECT shadow_box = bbox;
|
||||||
bbox.RevertYAxis();
|
shadow_box.Inflate( getTextThickness( aField ) * 2 );
|
||||||
|
shadow_box.RevertYAxis();
|
||||||
|
|
||||||
m_gal->SetIsStroke( false );
|
m_gal->SetIsStroke( false );
|
||||||
m_gal->SetIsFill( true );
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue