Smarten the UpdateAllItemsConditionally() tests in SetActiveLayer().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15329
(cherry picked from commit 5842e9c57e
)
This commit is contained in:
parent
c858643100
commit
78a6c1a909
|
@ -1350,11 +1350,22 @@ void PCB_EDIT_FRAME::SetActiveLayer( PCB_LAYER_ID aLayer )
|
|||
{
|
||||
return KIGFX::REPAINT;
|
||||
}
|
||||
|
||||
if( via->GetRemoveUnconnected() )
|
||||
return KIGFX::ALL;
|
||||
|
||||
// Clearances could be layer-dependent so redraw them when the active layer
|
||||
// is changed
|
||||
if( GetPcbNewSettings()->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS )
|
||||
return KIGFX::REPAINT;
|
||||
}
|
||||
else if( item->Type() == PCB_PAD_T )
|
||||
{
|
||||
PAD* pad = static_cast<PAD*>( item );
|
||||
|
||||
if( pad->GetRemoveUnconnected() )
|
||||
return KIGFX::ALL;
|
||||
|
||||
// Clearances could be layer-dependent so redraw them when the active layer
|
||||
// is changed
|
||||
if( GetPcbNewSettings()->m_Display.m_PadClearance )
|
||||
|
|
Loading…
Reference in New Issue