seg.cd2i is not set, seg.edgenr is used everywhere else

This commit is contained in:
Christopher Lackner 2018-11-16 11:43:19 +01:00
parent 301e379570
commit c52cc71a7b

View File

@ -1173,7 +1173,7 @@ namespace netgen
for (i = 1; i<= GetNSeg(); i++) for (i = 1; i<= GetNSeg(); i++)
{ {
Segment & seg = LineSegment(i); Segment & seg = LineSegment(i);
if ( seg.cd2i <= n ) if ( seg.edgenr <= n )
seg.SetBCName (cd2names[seg.edgenr-1]); seg.SetBCName (cd2names[seg.edgenr-1]);
else else
seg.SetBCName(0); seg.SetBCName(0);