From 2e9835f97bf587df837fa3c9b9608ecb6c279803 Mon Sep 17 00:00:00 2001 From: Lukas Ladenberger <lukas.ladenberger@googlemail.com> Date: Wed, 18 Jul 2012 12:01:06 +0200 Subject: [PATCH] fixed bug: problem with editing size and coordinates of cloned controls (the attributes of the original control were set) --- .../bmotionstudio/gef/editor/attribute/AbstractAttribute.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/AbstractAttribute.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/AbstractAttribute.java index adbacbd3..67a47dd5 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/AbstractAttribute.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/AbstractAttribute.java @@ -55,9 +55,7 @@ public abstract class AbstractAttribute implements IPropertySource, Cloneable { } public void addChild(AbstractAttribute atr) { - if (!getChildren().containsKey(atr.getID())) { - getChildren().put(atr.getID(), atr); - } + getChildren().put(atr.getID(), atr); } public Boolean hasChildren() { -- GitLab