From d311e2901198f0af605fb1f81fe3f4732fff4dc0 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 1 Apr 2011 03:16:14 +0100
Subject: [PATCH] BUG: size was returning points size instead of subset size

---
 src/meshTools/indexedOctree/treeDataPoint.H | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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