From 229e4ecc38085580226fd73dfff584847f94ee2f Mon Sep 17 00:00:00 2001 From: Daniel Brondani Date: Wed, 10 Jul 2024 14:32:46 +0200 Subject: [PATCH] [projmgr] Fix multiple variants recognition --- tools/projmgr/src/ProjMgrWorker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/projmgr/src/ProjMgrWorker.cpp b/tools/projmgr/src/ProjMgrWorker.cpp index 20e5e65cc..8b477485e 100644 --- a/tools/projmgr/src/ProjMgrWorker.cpp +++ b/tools/projmgr/src/ProjMgrWorker.cpp @@ -1743,7 +1743,7 @@ bool ProjMgrWorker::ProcessComponents(ContextItem& context) { auto aggCompId = matchedComponent->GetComponentAggregateID(); auto itr = std::find_if(processedComponents.begin(), processedComponents.end(), [aggCompId](const auto& pair) { - return pair.first.find(aggCompId) != std::string::npos; + return pair.first.compare(aggCompId) == 0; }); if (itr != processedComponents.end()) { // multiple variant of the same component found