]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[bos #32317] EDF26101 - no name with group filter
authorakondrat <alexey.kondratyev@opencascade.com>
Wed, 12 Oct 2022 10:16:20 +0000 (13:16 +0300)
committerGérald NICOLAS <gerald.nicolas@edf.fr>
Wed, 15 Feb 2023 07:47:51 +0000 (08:47 +0100)
Remove code that set not parametric name

src/Model/Model_AttributeSelection.cpp

index 59c47cca2996cf49f55e8463308dcfc657820beb..c4c5bede8296aeb461bd022cc78f487a447c9b28 100644 (file)
@@ -785,23 +785,6 @@ std::wstring Model_AttributeSelection::namingName(const std::wstring& theDefault
   if(!this->isInitialized())
     return !theDefaultName.empty() ? theDefaultName : aName;
 
-  // not argument has not parametric name (filters)
-  if (!this->isArgument() || (myParent && !myParent->isArgument())) {
-    GeomShapePtr aShape = value();
-    if (!aShape.get() && context().get())
-      aShape = context()->shape();
-    std::wstring aNotArgName;
-    if (aShape.get()) {
-      aNotArgName = Locale::Convert::toWString(aShape->shapeTypeStr());
-      if (myParent) {
-        std::wostringstream aStream;
-        aStream << "_" << selectionLabel().Father().Tag();
-        aNotArgName += aStream.str();
-      }
-    }
-    return aNotArgName;
-  }
-
   CenterType aCenterType = NOT_CENTER;
   std::shared_ptr<GeomAPI_Shape> aSubSh = internalValue(aCenterType);