Simplify if condition for SCH_SHAPE background layers

This commit is contained in:
JamesJCode 2025-01-02 20:37:15 +00:00
parent bdb2c3a025
commit 3a85a77289

View File

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