From bc65b7173f8f57b8105546414ef2aa261eacca93 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 3 Jul 2021 15:24:13 +0100 Subject: [PATCH] Don't use SCH version number when inspecting PCB files. --- pcbnew/plugins/kicad/pcb_parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/plugins/kicad/pcb_parser.cpp b/pcbnew/plugins/kicad/pcb_parser.cpp index e20e197711..fa164c89bf 100644 --- a/pcbnew/plugins/kicad/pcb_parser.cpp +++ b/pcbnew/plugins/kicad/pcb_parser.cpp @@ -2115,7 +2115,7 @@ void PCB_PARSER::parseNETINFO_ITEM() // Convert overbar syntax from `~...~` to `~{...}`. These were left out of the first merge // so the version is a bit later. - if( m_requiredVersion < 20210615 ) + if( m_requiredVersion < 20210606 ) name = ConvertToNewOverbarNotation( name ); NeedRIGHT(); @@ -2195,7 +2195,7 @@ void PCB_PARSER::parseNETCLASS() // Convert overbar syntax from `~...~` to `~{...}`. These were left out of the // first merge so the version is a bit later. - if( m_requiredVersion < 20210615 ) + if( m_requiredVersion < 20210606 ) nc->Add( ConvertToNewOverbarNotation( FromUTF8() ) ); else nc->Add( FromUTF8() ); @@ -4009,7 +4009,7 @@ PAD* PCB_PARSER::parsePAD( FOOTPRINT* aParent ) // Convert overbar syntax from `~...~` to `~{...}`. These were left out of the // first merge so the version is a bit later. - if( m_requiredVersion < 20210615 ) + if( m_requiredVersion < 20210606 ) netName = ConvertToNewOverbarNotation( netName ); if( netName != m_board->FindNet( pad->GetNetCode() )->GetNetname() )