fix rare segfault when head line had unsimplified segments

This commit is contained in:
Tomasz Wlostowski 2015-08-20 15:11:16 +02:00 committed by Maciej Suminski
parent 392600276f
commit 2b70aeafba
1 changed files with 1 additions and 1 deletions

View File

@ -943,7 +943,7 @@ void PNS_LINE_PLACER::removeLoops( PNS_NODE* aNode, PNS_LINE& aLatest )
aNode->Add( &aLatest, true );
for( int s = 0; s < aLatest.SegmentCount(); s++ )
for( int s = 0; s < aLatest.LinkCount(); s++ )
{
PNS_SEGMENT* seg = ( *aLatest.LinkedSegments() )[s];
PNS_LINE ourLine = aNode->AssembleLine( seg );