From a2992000d694e67ade14a54e6d98d06bf270cd8a Mon Sep 17 00:00:00 2001 From: skv Date: Mon, 10 Nov 2014 12:37:04 +0300 Subject: [PATCH] 22540: Fix the case if no edges are given --- src/GEOMImpl/GEOMImpl_ShapeDriver.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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(), -- 2.39.2