BUG: size was returning points size instead of subset size

This commit is contained in:
mattijs
2011-04-01 03:16:14 +01:00
parent cfd449acc7
commit d311e29011

View File

@ -86,7 +86,12 @@ public:
inline label size() const
{
return points_.size();
return
(
pointLabels_.size()
? pointLabels_.size()
: points_.size()
);
}
inline const labelList& pointLabels() const