Adjust constraints after editing other points.

Fixes https://gitlab.com/kicad/code/kicad/issues/7103
This commit is contained in:
Jeff Young 2021-03-19 11:34:14 +00:00
parent 472d0e03fc
commit 90742bba9f
1 changed files with 6 additions and 0 deletions

View File

@ -1304,6 +1304,12 @@ void PCB_POINT_EDITOR::updateItem() const
outline.SetVertex( i, m_editPoints->Point( i ).GetPosition() );
}
for( unsigned i = 0; i < m_editPoints->LinesSize(); ++i )
{
if( !isModified( m_editPoints->Line( i ) ) )
m_editPoints->Line( i ).SetConstraint( new EC_PERPLINE( m_editPoints->Line( i ) ) );
}
validatePolygon( outline );
zone->HatchBorder();
break;