From 690621885dcf83d25480b3995e832f5c305cab86 Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 30 Dec 2010 13:55:49 +0000 Subject: [PATCH] Fix of IPAL22186: don't dump the contents of list of vertexes if it is empty. --- src/GEOMImpl/GEOMImpl_ILocalOperations.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 << "])"; -- 2.39.2