From: akl Date: Thu, 30 Dec 2010 13:55:49 +0000 (+0000) Subject: Fix of IPAL22186: don't dump the contents of list of vertexes if it is empty. X-Git-Tag: Start_BR_19998_21191~103 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=690621885dcf83d25480b3995e832f5c305cab86;p=modules%2Fgeom.git Fix of IPAL22186: don't dump the contents of list of vertexes if it is empty. --- diff --git a/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx b/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx index a00e4d8f6..6a618ab3c 100644 --- a/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_ILocalOperations.cxx @@ -543,9 +543,10 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFillet1D << ", " << theR << ", ["; it = theVertexes.begin(); - pd << (*it++); - while (it != theVertexes.end()) { - pd << ", " << (*it++); + if (it != theVertexes.end()) { + pd << (*it++); + while (it != theVertexes.end()) + pd << ", " << (*it++); } pd << "])";