Skip to content

Commit 42e8825

Browse files
committed
check for redefine in attr being copied _from_, not to - ?!
I do not understand how this could have been right or how it did not cause problems if wrong. Perhaps redefined attr's are used so infrequently that it went unnoticed?
1 parent c6f03aa commit 42e8825

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/clstepcore/STEPattribute.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,9 @@ void STEPattribute::STEPwrite( ostream & out, const char * currSch ) {
642642

643643

644644
int STEPattribute::ShallowCopy( STEPattribute * sa ) {
645-
if( RedefiningAttr() ) {
646-
return RedefiningAttr()->ShallowCopy( sa );
645+
_redefAttr = sa->_redefAttr;
646+
if( _redefAttr ) {
647+
return _redefAttr->ShallowCopy( sa );
647648
}
648649
switch( sa->NonRefType() ) {
649650
case INTEGER_TYPE:

0 commit comments

Comments
 (0)