Generate changed message before making change.
Otherwise we've lost the "before" value. Fixes https://gitlab.com/kicad/code/kicad/issues/8186
This commit is contained in:
parent
55d2d0d93e
commit
94e8855c13
|
@ -268,12 +268,12 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
changed = true;
|
|
||||||
aPcbFootprint->SetReference( aNetlistComponent->GetReference() );
|
|
||||||
|
|
||||||
msg.Printf( _( "Changed %s reference designator to %s." ),
|
msg.Printf( _( "Changed %s reference designator to %s." ),
|
||||||
aPcbFootprint->GetReference(),
|
aPcbFootprint->GetReference(),
|
||||||
aNetlistComponent->GetReference() );
|
aNetlistComponent->GetReference() );
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
aPcbFootprint->SetReference( aNetlistComponent->GetReference() );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
||||||
|
@ -291,13 +291,13 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
changed = true;
|
|
||||||
aPcbFootprint->SetValue( aNetlistComponent->GetValue() );
|
|
||||||
|
|
||||||
msg.Printf( _( "Changed %s value from %s to %s." ),
|
msg.Printf( _( "Changed %s value from %s to %s." ),
|
||||||
aPcbFootprint->GetReference(),
|
aPcbFootprint->GetReference(),
|
||||||
aPcbFootprint->GetValue(),
|
aPcbFootprint->GetValue(),
|
||||||
aNetlistComponent->GetValue() );
|
aNetlistComponent->GetValue() );
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
aPcbFootprint->SetValue( aNetlistComponent->GetValue() );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
||||||
|
@ -318,13 +318,13 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
changed = true;
|
|
||||||
aPcbFootprint->SetPath( new_path );
|
|
||||||
|
|
||||||
msg.Printf( _( "Updated %s symbol association from %s to %s." ),
|
msg.Printf( _( "Updated %s symbol association from %s to %s." ),
|
||||||
aPcbFootprint->GetReference(),
|
aPcbFootprint->GetReference(),
|
||||||
aPcbFootprint->GetPath().AsString(),
|
aPcbFootprint->GetPath().AsString(),
|
||||||
new_path.AsString() );
|
new_path.AsString() );
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
aPcbFootprint->SetPath( new_path );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
||||||
|
@ -339,11 +339,11 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
changed = true;
|
|
||||||
aPcbFootprint->SetProperties( aNetlistComponent->GetProperties() );
|
|
||||||
|
|
||||||
msg.Printf( _( "Updated %s properties." ),
|
msg.Printf( _( "Updated %s properties." ),
|
||||||
aPcbFootprint->GetReference() );
|
aPcbFootprint->GetReference() );
|
||||||
|
|
||||||
|
changed = true;
|
||||||
|
aPcbFootprint->SetProperties( aNetlistComponent->GetProperties() );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
m_reporter->Report( msg, RPT_SEVERITY_ACTION );
|
||||||
|
|
Loading…
Reference in New Issue