mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 19:29:17 +00:00
Fix layers when loading legacy board files after v9 changes.
This commit is contained in:
parent
82ca303d4d
commit
b7293f1d77
@ -329,7 +329,7 @@ PCB_LAYER_ID PCB_IO_KICAD_LEGACY::leg_layer2new( int cu_count, int aLayerNum )
|
||||
}
|
||||
else
|
||||
{
|
||||
newid = cu_count - 1 - old;
|
||||
newid = BoardLayerFromLegacyId( cu_count - 1 - old );
|
||||
wxASSERT( newid >= 0 );
|
||||
|
||||
// This is of course incorrect, but at least it avoid crashing pcbnew:
|
||||
|
Loading…
Reference in New Issue
Block a user