]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix of IPAL22186: don't dump the contents of list of vertexes if it is empty.
authorakl <akl@opencascade.com>
Thu, 30 Dec 2010 13:55:49 +0000 (13:55 +0000)
committerakl <akl@opencascade.com>
Thu, 30 Dec 2010 13:55:49 +0000 (13:55 +0000)
src/GEOMImpl/GEOMImpl_ILocalOperations.cxx

index a00e4d8f66d48f76bfd8e505907310aaa9c27f71..6a618ab3cbfbd44e1ea30e0a7fdf0f6205b64f1b 100644 (file)
@@ -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 << "])";