Salome HOME
Initial implementation of restoreByName selector method
[modules/shaper.git] / src / Model / Model_Document.cpp
index 86c89c4201be3ba83539e5cfab3d1e9de6386662..548e3174b75cd4f511ad1426f4f6096c69baf29f 100755 (executable)
@@ -1549,7 +1549,7 @@ ResultPtr Model_Document::findByName(
   std::string aName = theName;
   ResultPtr aRes = myObjs->findByName(aName);
   theUniqueContext = !(aRes.get() && myNamingNames.find(aName) != myNamingNames.end());
-  while(!aRes.get() && aName[0] == '_') { // this may be thecontext with the history index
+  while(!aRes.get() && aName[0] == '_') { // this may be theContext with the history index
     aNumInHistory++;
     aName = aName.substr(1);
     aRes = myObjs->findByName(aName);