Legacy plugin: fix incorrect number of copper layers after loading a .brd file.

This commit is contained in:
jean-pierre charras 2020-04-18 19:58:45 +02:00
parent 9cb60dcdf5
commit 3a614a8ea1
1 changed files with 3 additions and 0 deletions

View File

@ -615,6 +615,9 @@ void LEGACY_PLUGIN::loadGENERAL()
// layer visibility equals layer usage, unless overridden later via "VisibleLayers"
// Must call SetEnabledLayers() before calling SetVisibleLayers().
m_board->SetVisibleLayers( new_mask );
// Ensure copper layers count is not modified:
m_board->SetCopperLayerCount( m_cu_count );
}
else if( TESTLINE( "VisibleLayers" ) )