mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029108: Crash writing STEP file
* Wrapped a try / catch block on creating objects in TopoDSToStep_MakeStepFace::Init()
This commit is contained in:
@@ -180,6 +180,8 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace,
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// -----------------
|
||||
// Translate Surface
|
||||
// -----------------
|
||||
@@ -465,6 +467,13 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace,
|
||||
myError = TopoDSToStep_NoWireMapped;
|
||||
done = Standard_False;
|
||||
}
|
||||
}
|
||||
catch (Standard_Failure const& theFailure)
|
||||
{
|
||||
FP->AddFail(errShape, theFailure.GetMessageString());
|
||||
myError = TopoDSToStep_FaceOther;
|
||||
done = Standard_False;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user