1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0032115: Data Exchange, STEP reader - Incorrect full path to file is not caught

Fixed a checking for a non-existent step file
This commit is contained in:
dpasukhi 2021-02-05 13:05:22 +03:00 committed by bugmaster
parent 0c38be8f8d
commit 00a72254dc

View File

@ -80,7 +80,7 @@ static Standard_Integer StepFile_Read (const char* theName,
aStreamPtr = &aFileStream;
}
if (aStreamPtr->bad())
if (aStreamPtr->fail())
{
return -1;
}
@ -166,7 +166,7 @@ static Standard_Integer StepFile_Read (const char* theName,
sout << " ... Parameters prepared ...\n";
#ifdef CHRONOMESURE
c.Show(sout)
c.Show(sout);
#endif
readtool.LoadModel(theStepModel);