Skip to content

Commit

Permalink
Constraint rule was not copied in copy property method. Fixes eclipse…
Browse files Browse the repository at this point in the history
…-vorto#2172

Signed-off-by: Tobias Gauss <[email protected]>
  • Loading branch information
Tobias Gauss committed Jan 27, 2020
1 parent 71864ea commit 4fdcda1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ private static Property copyProperty(Property property) {
newProperty.setPresence(property.getPresence());
newProperty.setMultiplicity(property.isMultiplicity());
newProperty.setDescription(property.getDescription());
newProperty.setConstraintRule(property.getConstraintRule());

if (property.getType() instanceof PrimitivePropertyType) {
PrimitivePropertyType newPrimitiveType =
Expand Down

0 comments on commit 4fdcda1

Please sign in to comment.