]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
22853: EDF 9924 GEOM: Dimension histogram
authorvsr <vsr@opencascade.com>
Thu, 7 May 2015 11:08:49 +0000 (14:08 +0300)
committervsr <vsr@opencascade.com>
Thu, 7 May 2015 11:08:49 +0000 (14:08 +0300)
- Alternative fix for list of shapes case, as previous one is incorrect.

src/GEOMUtils/GEOMUtils_ShapeStatistics.cxx

index 37b5f6b2cec08d6729239e5f97555d7cb05464bd..4ef3b8658899e97fd40538c60b2aed77d666eae6 100644 (file)
@@ -83,7 +83,7 @@ namespace GEOMUtils
       // keep measures to distribute it
       measures[shift+index] = aMeasure;
     }
-    shift += aNbS;
+    shift += aSubShapesMap.Extent();
   }
   return measures;
 }