Skip to content
Snippets Groups Projects
Commit 43e0c404 authored by Adam Welc's avatar Adam Welc
Browse files

Pairlist copy should involve copying attributes the same as copy method for...

Pairlist copy should involve copying attributes the same as copy method for all other data structures.
parent ed909b62
Branches
No related tags found
No related merge requests found
...@@ -273,6 +273,12 @@ public class RPairList extends RSharingAttributeStorage implements RAbstractCont ...@@ -273,6 +273,12 @@ public class RPairList extends RSharingAttributeStorage implements RAbstractCont
result = (RPairList) result.cdr; result = (RPairList) result.cdr;
original = origList.cdr; original = origList.cdr;
} }
if (getAttributes() != null) {
RAttributes newAttributes = result.initAttributes();
for (RAttribute attr : getAttributes()) {
newAttributes.put(attr.getName(), attr.getValue());
}
}
return result; return result;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment