Disentagle board edges from graphics in global delete.
Fixes https://gitlab.com/kicad/code/kicad/issues/7024
This commit is contained in:
parent
df69ce5e67
commit
7716f20a5b
|
@ -173,12 +173,21 @@ void DIALOG_GLOBAL_DELETION::acceptPcbDelete()
|
||||||
if( !delDrawings || !masque_layer[layer] )
|
if( !delDrawings || !masque_layer[layer] )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( layer == Edge_Cuts )
|
||||||
|
{
|
||||||
|
// We currently don't differentiate between locked and unlocked board
|
||||||
|
// edges. (If we did, we'd also need to add checkboxes to filter them
|
||||||
|
// as overloading m_drawingFilter* would be confusing.)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if( dwg->IsLocked() && !m_drawingFilterLocked->GetValue() )
|
if( dwg->IsLocked() && !m_drawingFilterLocked->GetValue() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( !dwg->IsLocked() && !m_drawingFilterUnlocked->GetValue() )
|
if( !dwg->IsLocked() && !m_drawingFilterUnlocked->GetValue() )
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if( type == PCB_TEXT_T )
|
else if( type == PCB_TEXT_T )
|
||||||
{
|
{
|
||||||
if( !delTexts || !del_text_layers[layer] )
|
if( !delTexts || !del_text_layers[layer] )
|
||||||
|
|
Loading…
Reference in New Issue