]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Additional fixes for neighbors selection basing on the current unit-tests results.
authormpv <mpv@opencascade.com>
Fri, 21 Dec 2018 16:48:08 +0000 (19:48 +0300)
committermpv <mpv@opencascade.com>
Fri, 21 Dec 2018 16:48:08 +0000 (19:48 +0300)
src/Selector/Selector_FilterByNeighbors.cpp

index 908ca5fa1a24352286d5c9dfc364e70b78809181..e98899b66678469c81d5532384f44ee6bb1172ec 100644 (file)
@@ -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) {