Prevent grid axes from inadvertently turning on in eeschema
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4680
This commit is contained in:
parent
6d2f30005e
commit
dd42a19319
|
@ -194,7 +194,14 @@ void PANEL_EESCHEMA_COLOR_SETTINGS::createSwatches()
|
|||
} );
|
||||
|
||||
for( int layer : layers )
|
||||
createSwatch( layer, LayerName( layer ) );
|
||||
{
|
||||
wxString name = LayerName( layer );
|
||||
|
||||
if( layer == LAYER_SCHEMATIC_GRID_AXES )
|
||||
name += _( " (symbol editor only)" );
|
||||
|
||||
createSwatch( layer, name );
|
||||
}
|
||||
|
||||
// Give a minimal width to m_colorsListWindow, in order to always having
|
||||
// a full row shown
|
||||
|
|
|
@ -382,6 +382,9 @@ void SCH_EDIT_FRAME::SaveProjectSettings()
|
|||
|
||||
void SCH_EDIT_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
|
||||
{
|
||||
// For now, axes are forced off in eeschema even if turned on in config
|
||||
eeconfig()->m_Window.grid.axes_enabled = false;
|
||||
|
||||
SCH_BASE_FRAME::LoadSettings( eeconfig() );
|
||||
|
||||
GetRenderSettings()->m_ShowPinsElectricalType = false;
|
||||
|
|
|
@ -55,7 +55,6 @@ void SCHEMATIC::Reset()
|
|||
}
|
||||
|
||||
|
||||
|
||||
void SCHEMATIC::SetRoot( SCH_SHEET* aRootSheet )
|
||||
{
|
||||
wxCHECK_RET( aRootSheet, "Call to SetRoot with null SCH_SHEET!" );
|
||||
|
|
Loading…
Reference in New Issue