From 65c6fbebf21c86a8bd0efdfa9ba03a15ab1e398a Mon Sep 17 00:00:00 2001 From: hneemann Date: Tue, 30 May 2017 18:18:36 +0200 Subject: [PATCH] pass the modified attributes to the editors --- .../de/neemann/digital/gui/components/AttributeDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/neemann/digital/gui/components/AttributeDialog.java b/src/main/java/de/neemann/digital/gui/components/AttributeDialog.java index 17a6deb31..7818b8b81 100644 --- a/src/main/java/de/neemann/digital/gui/components/AttributeDialog.java +++ b/src/main/java/de/neemann/digital/gui/components/AttributeDialog.java @@ -71,9 +71,9 @@ public class AttributeDialog extends JDialog { topMostTextComponent = null; for (Key key : list) { - Editor e = EditorFactory.INSTANCE.create(key, elementAttributes.get(key)); + Editor e = EditorFactory.INSTANCE.create(key, modifiedAttributes.get(key)); editors.add(new EditorHolder(e, key)); - e.addToPanel(panel, key, elementAttributes, this); + e.addToPanel(panel, key, modifiedAttributes, this); if (topMostTextComponent == null && e instanceof EditorFactory.StringEditor) topMostTextComponent = ((EditorFactory.StringEditor) e).getTextComponent();