7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 12:49:34 +00:00

Clear render cache for hole walls on zoom change

This commit is contained in:
Jon Evans 2025-02-23 13:03:54 -05:00
parent 0e8934f887
commit bacb6bf40f

View File

@ -1770,6 +1770,10 @@ double PAD::ViewGetLOD( int aLayer, const KIGFX::VIEW* aView ) const
return lodScaleForThreshold( minSize, pcbIUScale.mmToIU( 0.5 ) );
}
// Hole walls always need a repaint when zoom changes
if( aLayer == LAYER_PAD_HOLEWALLS )
aView->Update( this, KIGFX::REPAINT );
VECTOR2L padSize = GetShape( pcbLayer ) != PAD_SHAPE::CUSTOM
? VECTOR2L( GetSize( pcbLayer ) ) : GetBoundingBox().GetSize();