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:
parent
0e8934f887
commit
bacb6bf40f
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user