Coverity: Uncaught exception

This commit is contained in:
wmayer
2020-07-20 13:58:15 +02:00
parent c5c8b21cc4
commit 9b2a6edeb0
4 changed files with 81 additions and 46 deletions

View File

@@ -593,7 +593,7 @@ void PartGui::DlgProjectionOnSurface::higlight_object(Part::Feature* iCurrentObj
{
if (!iCurrentObject) return;
auto partenShape = iCurrentObject->Shape.getShape().getShape();
auto subShape = iCurrentObject->Shape.getShape().getSubShape(iShapeName.c_str());
auto subShape = iCurrentObject->Shape.getShape().getSubShape(iShapeName.c_str(), true);
TopoDS_Shape currentShape = subShape;
if (subShape.IsNull()) currentShape = partenShape;