Don't assert on 0-width tracks. Just don't inherit from them.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14558
This commit is contained in:
Jeff Young 2023-09-15 19:04:12 +01:00
parent 408f505b75
commit ed292e180d
1 changed files with 3 additions and 2 deletions

View File

@ -611,7 +611,8 @@ bool PNS_KICAD_IFACE_BASE::inheritTrackWidth( PNS::ITEM* aItem, int* aInheritedW
for( PNS::ITEM* item : linkedSegs.Items() ) for( PNS::ITEM* item : linkedSegs.Items() )
{ {
int w = tryGetTrackWidth( item ); int w = tryGetTrackWidth( item );
assert( w > 0 );
if( w > 0 )
mval = std::min( w, mval ); mval = std::min( w, mval );
} }