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:
parent
0c38be8f8d
commit
00a72254dc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user