]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Selector/Selector_Selector.cpp
Salome HOME
Debug of move to the end of history
[modules/shaper.git] / src / Selector / Selector_Selector.cpp
index fa1f562b1d2fb846e343edd3279c89415279e56f..c514b8c1231ddce80f1db92af663a7125e9763c8 100644 (file)
@@ -805,6 +805,7 @@ TDF_Label Selector_Selector::restoreByName(
     case TopAbs_WIRE:
       myType = SELTYPE_CONTAINER;
       break;
+    case TopAbs_VERTEX:
     case TopAbs_EDGE:
     case TopAbs_FACE:
       myType = SELTYPE_INTERSECT;
@@ -825,7 +826,7 @@ TDF_Label Selector_Selector::restoreByName(
         if (aSubContext.IsNull())
           return aSubContext; // invalid sub-selection parsing
         if (!aContext.IsNull() && !aContext.IsEqual(aSubContext)) {
-          if (theNameGenerator->isLater(aSubContext, aContext))
+          if (!theNameGenerator->isLater(aContext, aSubContext))
             aContext = aSubContext;
         } else {
           aContext = aSubContext;
@@ -848,7 +849,7 @@ TDF_Label Selector_Selector::restoreByName(
         if (aSubContext.IsNull())
           return aSubContext; // invalid sub-selection parsing
         if (!aContext.IsNull() && !aContext.IsEqual(aSubContext)) {
-          if (theNameGenerator->isLater(aSubContext, aContext))
+          if (!theNameGenerator->isLater(aContext, aSubContext))
             aContext = aSubContext;
         } else {
           aContext = aSubContext;