mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-04 23:35:31 +00:00
Mark pad as dirty when changing layerset
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20435
This commit is contained in:
parent
52514e1bfe
commit
8921824128
@ -562,8 +562,8 @@ std::shared_ptr<SHAPE> PAD::GetEffectiveShape( PCB_LAYER_ID aLayer, FLASHING fla
|
||||
|
||||
aLayer = Padstack().EffectiveLayerFor( aLayer );
|
||||
|
||||
wxASSERT_MSG( m_effectiveShapes.contains( aLayer ) && m_effectiveShapes.at( aLayer ),
|
||||
wxT( "Null shape in PAD::GetEffectiveShape!" ) );
|
||||
wxCHECK_MSG( m_effectiveShapes.contains( aLayer ) && m_effectiveShapes.at( aLayer ), nullptr,
|
||||
wxT( "Null shape in PAD::GetEffectiveShape!" ) );
|
||||
|
||||
return m_effectiveShapes[aLayer];
|
||||
}
|
||||
|
@ -431,7 +431,7 @@ public:
|
||||
m_polyDirty[ERROR_OUTSIDE] = true;
|
||||
}
|
||||
|
||||
void SetLayerSet( const LSET& aLayers ) override { m_padStack.SetLayerSet( aLayers ); }
|
||||
void SetLayerSet( const LSET& aLayers ) override { m_padStack.SetLayerSet( aLayers ); SetDirty(); }
|
||||
LSET GetLayerSet() const override { return m_padStack.LayerSet(); }
|
||||
|
||||
void SetAttribute( PAD_ATTRIB aAttribute );
|
||||
|
Loading…
Reference in New Issue
Block a user