From 6aaaaad37f5842c724e210fc96b40c44ef675f80 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 25 Jun 2024 10:18:09 -0700 Subject: [PATCH] Properly count multiple Altium version settings There is a fair amount of gradation in different Altium products Fixes https://gitlab.com/kicad/code/kicad/-/issues/18276 --- pcbnew/pcb_io/altium/altium_parser_pcb.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/pcb_io/altium/altium_parser_pcb.cpp b/pcbnew/pcb_io/altium/altium_parser_pcb.cpp index 1b0c012151..4d50d7ad6e 100644 --- a/pcbnew/pcb_io/altium/altium_parser_pcb.cpp +++ b/pcbnew/pcb_io/altium/altium_parser_pcb.cpp @@ -935,12 +935,15 @@ AVIA6::AVIA6( ALTIUM_BINARY_PARSER& aReader ) } } - if( subrecord1 > 209 ) + if( subrecord1 >= 246 ) { aReader.Skip( 38 ); soldermask_expansion_linked = aReader.Read() & 0x01; soldermask_expansion_back = aReader.ReadKicadUnit(); + } + if( subrecord1 >= 307 ) + { aReader.Skip( 45 ); pos_tolerance = aReader.ReadKicadUnit();