diff --git a/ManiVault/src/plugins/PointData/src/PointData.cpp b/ManiVault/src/plugins/PointData/src/PointData.cpp index 3b3cafefa..c3dc06cb4 100644 --- a/ManiVault/src/plugins/PointData/src/PointData.cpp +++ b/ManiVault/src/plugins/PointData/src/PointData.cpp @@ -895,7 +895,7 @@ void Points::selectInvert() std::set selectionSet(selection->indices.begin(), selection->indices.end()); - const auto numberOfPoints = getNumPoints(); + const auto numberOfPoints = getFullDataset()->getNumPoints(); selectionIndices.reserve(numberOfPoints - selectionSet.size());