mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-15 05:28:47 +08: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user