diff --git a/src/meshTools/indexedOctree/treeDataPoint.H b/src/meshTools/indexedOctree/treeDataPoint.H index 291927625c..336479d69b 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