mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51: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;
|
aStreamPtr = &aFileStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aStreamPtr->bad())
|
if (aStreamPtr->fail())
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ static Standard_Integer StepFile_Read (const char* theName,
|
|||||||
sout << " ... Parameters prepared ...\n";
|
sout << " ... Parameters prepared ...\n";
|
||||||
|
|
||||||
#ifdef CHRONOMESURE
|
#ifdef CHRONOMESURE
|
||||||
c.Show(sout)
|
c.Show(sout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
readtool.LoadModel(theStepModel);
|
readtool.LoadModel(theStepModel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user