Freeze implicit footprint file version at last before explicit.
We have been writing footprint versions for a while now, but we were still interpreting the lack of a version as "current". This changes lack of a version to mean "last format before we started writing out versions". Fixes https://gitlab.com/kicad/code/kicad/issues/7143
This commit is contained in:
parent
42cbcf7ef4
commit
9ac807bdd2
|
@ -826,6 +826,7 @@ void PCB_PARSER::parseHeader()
|
|||
NeedLEFT();
|
||||
|
||||
T tok = NextTok();
|
||||
|
||||
if( tok == T_version )
|
||||
{
|
||||
m_requiredVersion = parseInt( FromUTF8().mb_str( wxConvUTF8 ) );
|
||||
|
@ -844,7 +845,8 @@ void PCB_PARSER::parseHeader()
|
|||
}
|
||||
else
|
||||
{
|
||||
m_requiredVersion = SEXPR_BOARD_FILE_VERSION;
|
||||
m_requiredVersion = 20201115; // Last version before we started writing version #s
|
||||
// in footprint files as well as board files.
|
||||
m_tooRecent = ( m_requiredVersion > SEXPR_BOARD_FILE_VERSION );
|
||||
|
||||
// Skip the host name and host build version information.
|
||||
|
|
Loading…
Reference in New Issue