From: skv Date: Mon, 10 Nov 2014 09:37:04 +0000 (+0300) Subject: 22540: Fix the case if no edges are given X-Git-Tag: V7_5_0rc1~6^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a2992000d694e67ade14a54e6d98d06bf270cd8a;p=modules%2Fgeom.git 22540: Fix the case if no edges are given --- diff --git a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx index 914158002..e67c0a47a 100644 --- a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx @@ -212,6 +212,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const } } + if (aSeqEdgesIn->IsEmpty()) { + Standard_ConstructionError::Raise("No edges given"); + } + // 2. Connect edges to wires of maximum length Handle(TopTools_HSequenceOfShape) aSeqWiresOut; ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdgesIn, Precision::Confusion(),