Browse Source

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
pcb_db
Seth Hillbrand 9 months ago
parent
commit
e316b33a08
  1. 1
      pcbnew/grid_layer_box_helpers.cpp

1
pcbnew/grid_layer_box_helpers.cpp

@ -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();

Loading…
Cancel
Save