case TopAbs_WIRE:
myType = SELTYPE_CONTAINER;
break;
+ case TopAbs_VERTEX:
case TopAbs_EDGE:
case TopAbs_FACE:
myType = SELTYPE_INTERSECT;
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;
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;