SCH_EDIT_FRAME::FixupJunctions(): avoid flagging schematics as modified, when no junction is added.

This commit is contained in:
jean-pierre charras 2019-06-25 18:23:28 +02:00
parent 1cc05f19b5
commit 31c254d8c1
1 changed files with 3 additions and 1 deletions

View File

@ -1175,7 +1175,9 @@ void SCH_EDIT_FRAME::FixupJunctions()
for( auto pin : cmp->GetPins() )
{
auto pos = cmp->GetPosition() + xform.TransformCoordinate( pin.GetPosition() );
if ( screen->IsJunctionNeeded( pos ) )
// Test if a _new_ junction is needed, and add it if missing
if ( screen->IsJunctionNeeded( pos, true ) )
{
AddJunction( pos );
}