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