fix rare segfault when head line had unsimplified segments
This commit is contained in:
parent
392600276f
commit
2b70aeafba
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue