mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Mark pad as dirty when changing layerset
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20435 (cherry picked from commit 8921824128b8408b76c4b9194e6fcf01f0350188) Co-authored-by: Jon Evans <jon@craftyjon.com>
This commit is contained in:
parent
8acf694129
commit
bd3cc02b18
@ -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…
x
Reference in New Issue
Block a user