Don't hide zone virtual layers in footprint editor

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6642
This commit is contained in:
Jon Evans 2020-12-16 21:47:07 -05:00
parent f6ad031056
commit 87b25936a0
1 changed files with 1 additions and 1 deletions

View File

@ -1121,7 +1121,7 @@ void APPEARANCE_CONTROLS::setVisibleObjects( GAL_SET aLayers )
{
KIGFX::VIEW* view = m_frame->GetCanvas()->GetView();
for( size_t i = 0; i < aLayers.size(); i++ )
for( size_t i = 0; i < GAL_LAYER_INDEX( LAYER_ZONE_START ); i++ )
view->SetLayerVisible( GAL_LAYER_ID_START + GAL_LAYER_ID( i ), aLayers.test( i ) );
}
else