Altium QA: Fix issue with newer wx

Now uses std::from_chars and + prefix must be stripped
This commit is contained in:
Jon Evans 2023-11-24 16:00:42 -05:00
parent bcea2aa73b
commit a2379f4111
2 changed files with 2 additions and 1 deletions

View File

@ -555,6 +555,8 @@ int32_t ALTIUM_PARSER::ReadKicadUnit( const std::map<wxString, wxString>& aProps
return 0;
}
prefix.StartsWith( "+", &prefix );
double mils;
if( !prefix.ToCDouble( &mils ) )

View File

@ -193,7 +193,6 @@ static const std::vector<READ_KICAD_UNIT_CASE> read_kicad_unit_property = {
{ "100", 0 },
{ "100mils", 0 },
// Incorrect prefix
{ "+-100mil", 0 },
{ "a100mil", 0 },
};