diff --git a/src/meshTools/indexedOctree/treeDataPoint.H b/src/meshTools/indexedOctree/treeDataPoint.H index 291927625c53b2e6442e483249867b9fc0e360a5..336479d69b1ce0f7067434d5bd91b3769526f15a 100644 --- a/src/meshTools/indexedOctree/treeDataPoint.H +++ b/src/meshTools/indexedOctree/treeDataPoint.H @@ -86,7 +86,12 @@ public: inline label size() const { - return points_.size(); + return + ( + pointLabels_.size() + ? pointLabels_.size() + : points_.size() + ); } inline const labelList& pointLabels() const