]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_SelectionNaming.cpp
Salome HOME
A unit test for the issue #1799
[modules/shaper.git] / src / Model / Model_SelectionNaming.cpp
index abaad4b2f1ddd77d6f111c261aad04c044917ef5..2a1fc259fc3786ac467fe5792d7600208e8c19a8 100644 (file)
@@ -381,7 +381,7 @@ const TopoDS_Shape getShapeFromNS(
     // if we have here the same name as theSubShapeName, there is no index in compound, it is whole
     Handle(TDataStd_Name) aName;
     if (!theNS->Label().FindAttribute(TDataStd_Name::GetID(), aName) ||
-        aName->Get() != theSubShapeName.c_str()) {
+        aName->Get() != aSubString.c_str()) {
       aSubString = aSubString.substr(n+1);
       indx = atoi(aSubString.c_str());
     }