diff --git a/src/GEOMUtils/GEOMUtils_ShapeStatistics.cxx b/src/GEOMUtils/GEOMUtils_ShapeStatistics.cxx index 37b5f6b2c..4ef3b8658 100644 --- a/src/GEOMUtils/GEOMUtils_ShapeStatistics.cxx +++ b/src/GEOMUtils/GEOMUtils_ShapeStatistics.cxx @@ -83,7 +83,7 @@ namespace GEOMUtils // keep measures to distribute it measures[shift+index] = aMeasure; } - shift += aNbS; + shift += aSubShapesMap.Extent(); } return measures; }