Fixed an assertion triggered upon line simplification (PNS).

This commit is contained in:
Tomasz Wlostowski 2016-09-06 16:40:40 +02:00 committed by Maciej Suminski
parent f1e2a2c4c1
commit 03d372a0ec
1 changed files with 3 additions and 4 deletions

View File

@ -992,10 +992,9 @@ void LINE_PLACER::simplifyNewLine( NODE* aNode, SEGMENT* aLatest )
if( simplified.PointCount() != l.PointCount() )
{
LINE lnew( l );
aNode->Remove( l );
lnew.SetShape( simplified );
aNode->Add( lnew );
l.SetShape( simplified );
aNode->Add( l );
}
}