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

@ -697,7 +697,7 @@ void LINE_PLACER::splitAdjacentSegments( NODE* aNode, ITEM* aSeg, const VECTOR2I
return;
SEGMENT* s_old = static_cast<SEGMENT*>( aSeg );
std::unique_ptr< SEGMENT > s_new[2] = {
Clone( *s_old ),
Clone( *s_old )
@ -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 );
}
}