diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index f7204a75a7..c21b55e5e2 100755 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -428,7 +428,7 @@ Standard_Boolean STEPCAFControl_Reader::Transfer (STEPControl_Reader &reader, if ( num <=0 ) return Standard_False; if ( nroot ) { if ( nroot > num ) return Standard_False; - reader.TransferOneRoot ( num ); + reader.TransferOneRoot ( nroot ); } else { for ( i=1; i <= num; i++ ) reader.TransferOneRoot ( i );