Fix layer preset overwriting ratsnest settings
Fixes https://gitlab.com/kicad/code/kicad/issues/6975
This commit is contained in:
parent
3ad0e5d8bf
commit
5931a39c0f
|
@ -1133,6 +1133,13 @@ void APPEARANCE_CONTROLS::setVisibleObjects( GAL_SET aLayers )
|
|||
}
|
||||
else
|
||||
{
|
||||
// Ratsnest visibility is controlled by the ratsnest option, and not by the preset
|
||||
if( m_frame->IsType( FRAME_PCB_EDITOR ) )
|
||||
{
|
||||
PCB_DISPLAY_OPTIONS opt = m_frame->GetDisplayOptions();
|
||||
aLayers.set( LAYER_RATSNEST, opt.m_ShowGlobalRatsnest );
|
||||
}
|
||||
|
||||
m_frame->GetBoard()->SetVisibleElements( aLayers );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue