mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-14 12:59:34 +00:00
Correct layerset calls
The Board layerset (because BOARD is a BOARD_ITEM) should return the layers that the board contains instead of just the F.Cu. This assigns the common function to map to the board-specific functions Fixes https://gitlab.com/kicad/code/kicad/-/issues/20317
This commit is contained in:
parent
dd604361d3
commit
96794e94e3
@ -609,6 +609,7 @@ public:
|
||||
* @return the enabled layers in bit-mapped form.
|
||||
*/
|
||||
LSET GetEnabledLayers() const;
|
||||
LSET GetLayerSet() const override { return GetEnabledLayers(); }
|
||||
|
||||
/**
|
||||
* A proxy function that calls the correspondent function in m_BoardSettings.
|
||||
@ -616,6 +617,7 @@ public:
|
||||
* @param aLayerMask the new bit-mask of enabled layers.
|
||||
*/
|
||||
void SetEnabledLayers( LSET aLayerMask );
|
||||
void SetLayerSet( const LSET& aLayerMask ) override { SetEnabledLayers( aLayerMask ); }
|
||||
|
||||
/**
|
||||
* A proxy function that calls the correspondent function in m_BoardSettings
|
||||
|
Loading…
Reference in New Issue
Block a user