From a7337125ce7cda3bfc6edfa8615d76e2abe31d22 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 21 Dec 2018 19:48:08 +0300 Subject: [PATCH] Additional fixes for neighbors selection basing on the current unit-tests results. --- src/Selector/Selector_FilterByNeighbors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Selector/Selector_FilterByNeighbors.cpp b/src/Selector/Selector_FilterByNeighbors.cpp index 908ca5fa1..e98899b66 100644 --- a/src/Selector/Selector_FilterByNeighbors.cpp +++ b/src/Selector/Selector_FilterByNeighbors.cpp @@ -312,8 +312,8 @@ TDF_Label Selector_FilterByNeighbors::restoreByName(std::string theName, } else { aContext = aSubContext; } - if (!aContext.IsNull()) // for filters by neighbor the latest context shape is vital - aContext = theNameGenerator->newestContext(aContext); + //if (!aContext.IsNull()) // for filters by neighbor the latest context shape is vital + // aContext = theNameGenerator->newestContext(aContext); // searching for the level index std::string aLevel; @@ -398,7 +398,7 @@ std::string Selector_FilterByNeighbors::name(Selector_NameGenerator* theNameGene } // sub-name already contains the needed context name, so, here it is not needed if (aThisContextNameNeeded && ( - aSubName.find(aContextName) == 0 || aSubName.substr(1).find(aContextName)) == 0) + aSubName.find(aContextName) == 0 || aSubName.substr(1).find(aContextName) == 0)) aThisContextNameNeeded = false; } if (aThisContextNameNeeded) { -- 2.39.2