Repair earlier fix for VVIAs.
This commit is contained in:
parent
33a56c530d
commit
24846d3f44
|
@ -126,17 +126,17 @@ public:
|
|||
if( item->IsVirtual() )
|
||||
continue;
|
||||
|
||||
if( item->Kind() == VIA_T )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if( item->Kind() == SEGMENT_T || item->Kind() == ARC_T )
|
||||
if( item->Kind() == SEGMENT_T || item->Kind() == ARC_T )
|
||||
{
|
||||
if( !seg1 )
|
||||
seg1 = static_cast<const LINKED_ITEM*>( item );
|
||||
else
|
||||
seg2 = static_cast<const LINKED_ITEM*>( item );
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
wxCHECK( seg1 && seg2, false );
|
||||
|
|
|
@ -1085,7 +1085,7 @@ const LINE NODE::AssembleLine( LINKED_ITEM* aSeg, int* aOriginSegmentIndex,
|
|||
if( aOriginSegmentIndex && *aOriginSegmentIndex >= pl.SegmentCount() )
|
||||
*aOriginSegmentIndex = pl.SegmentCount() - 1;
|
||||
|
||||
assert( pl.SegmentCount() != 0 );
|
||||
wxASSERT_MSG( pl.SegmentCount() != 0, "assembled line should never be empty" );
|
||||
|
||||
return pl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue