]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_AttributeSelectionList.cpp
Salome HOME
Correct working with default values in fields: store all not-selected entities with...
[modules/shaper.git] / src / Model / Model_AttributeSelectionList.cpp
index a6d25f7ad727fa7122b4ab756809b4c1e2d6a730..d8ea9da5c0c6c12616dace412a2947b6b1d53a89 100644 (file)
@@ -155,8 +155,8 @@ static void copyAttrs(TDF_Label theSource, TDF_Label theDestination) {
     // for named shape copy exact shapes (in NamedShape Paste method the CopyTool is used)
     Handle(TNaming_NamedShape) aNS = Handle(TNaming_NamedShape)::DownCast(anAttrIter.Value());
     if (aNS.IsNull()) {
-      // no relocation, empty map
-      Handle(TDF_RelocationTable) aRelocTable = new TDF_RelocationTable();
+      // no special relocation, empty map, but self-relocation is on: copy references w/o changes
+      Handle(TDF_RelocationTable) aRelocTable = new TDF_RelocationTable(Standard_True);
       anAttrIter.Value()->Paste(aTargetAttr, aRelocTable);
     } else {
       CopyNS(aNS, aTargetAttr);