From 15ea0ad9bb4c23289735d469fb8e0a567f5c46bd Mon Sep 17 00:00:00 2001 From: Julian Thijssen Date: Wed, 20 Nov 2024 16:38:12 +0100 Subject: [PATCH] Fix invert selection on a subset --- ManiVault/src/plugins/PointData/src/PointData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());