mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 09:51:53 +00:00
Simplify if condition for SCH_SHAPE background layers
This commit is contained in:
parent
bdb2c3a025
commit
3a85a77289
@ -574,11 +574,7 @@ std::vector<int> SCH_SHAPE::ViewGetLayers() const
|
||||
|
||||
layers[0] = IsPrivate() ? LAYER_PRIVATE_NOTES : m_layer;
|
||||
|
||||
if( m_layer == LAYER_PRIVATE_NOTES )
|
||||
{
|
||||
layers[1] = LAYER_SHAPES_BACKGROUND;
|
||||
}
|
||||
else if( m_layer == LAYER_DEVICE )
|
||||
if( m_layer == LAYER_DEVICE )
|
||||
{
|
||||
if( m_fill == FILL_T::FILLED_WITH_BG_BODYCOLOR )
|
||||
layers[1] = LAYER_DEVICE_BACKGROUND;
|
||||
|
Loading…
Reference in New Issue
Block a user