7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 12:40:12 +00:00

Update mask in grid box helper when showing

Masks are not permanent depending on the editor, so make sure that the
value is kept up to date
This commit is contained in:
Seth Hillbrand 2025-01-28 11:49:56 -08:00
parent 7ea6206126
commit e316b33a08

View File

@ -187,6 +187,7 @@ void GRID_CELL_LAYER_SELECTOR::BeginEdit( int aRow, int aCol, wxGrid* aGrid )
if( m_frame && !m_frame->GetBoard()->IsLayerEnabled( ToLAYER_ID( m_value ) ) )
LayerBox()->ShowNonActivatedLayers( true );
LayerBox()->SetNotAllowedLayerSet( m_mask );
LayerBox()->Resync();
LayerBox()->SetLayerSelection( m_value );
LayerBox()->SetFocus();