]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Small fix.
authorana <ana@opencascade.com>
Fri, 13 Apr 2012 08:46:38 +0000 (08:46 +0000)
committerana <ana@opencascade.com>
Fri, 13 Apr 2012 08:46:38 +0000 (08:46 +0000)
Salome catch exception during creation 0 ISOs.

src/OCC2VTK/GEOM_WireframeFace.cxx

index 8b88b9db930d1199e96d475c69b48367b6c3e5ce..660b28f5685f847a687bc53358bcd6620b05048e 100755 (executable)
@@ -132,8 +132,8 @@ CreateIso(const TopoDS_Face& theFace,
                                      Standard_False);
   
   Standard_Real anUMin, anUMax, aVMin, aVMax;
-  TColStd_Array1OfReal anUPrm(1, theNbIso[0]), aVPrm(1, theNbIso[1]);
-  TColStd_Array1OfInteger anUInd(1, theNbIso[0]), aVInd(1, theNbIso[1]);
+  TColStd_Array1OfReal anUPrm(0, theNbIso[0]), aVPrm(0, theNbIso[1]);
+  TColStd_Array1OfInteger anUInd(0, theNbIso[0]), aVInd(0, theNbIso[1]);
 
   anUInd.Init(0);
   aVInd.Init(0);