mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-15 10:43:15 +02:00
Fix is-same logic in updateFootprintParameters.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19988
This commit is contained in:
parent
f33f10bb38
commit
f9b19bbb5b
@ -481,9 +481,18 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
|||||||
// in the order they are stored in the symbol.
|
// in the order they are stored in the symbol.
|
||||||
bool same = true;
|
bool same = true;
|
||||||
|
|
||||||
for( std::pair<wxString, wxString> field : compFields )
|
for( const auto& [name, value] : compFields )
|
||||||
{
|
{
|
||||||
if( fpFieldsAsMap.count( field.first ) == 0 || fpFieldsAsMap[field.first] != field.second )
|
if( fpFieldsAsMap.count( name ) == 0 || fpFieldsAsMap[name] != value )
|
||||||
|
{
|
||||||
|
same = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for( const auto& [name, value] : fpFieldsAsMap )
|
||||||
|
{
|
||||||
|
if( compFields.count( name ) == 0 )
|
||||||
{
|
{
|
||||||
same = false;
|
same = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user