Merge branch 'fix_seg_bcname' into 'master'

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

See merge request jschoeberl/netgen!104
This commit is contained in:
Joachim Schöberl 2018-11-16 10:54:40 +00:00
commit f023b1ac2f

View File

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