Commit 52f19699 authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix in AtomTransmutationWidget + cosmetic change

parent 33039a8b
......@@ -91,7 +91,7 @@ class AtomTransmutationConfigurator(IConfigurator):
if not isinstance(expression,basestring):
raise ConfiguratorError("Wrong format for atom transmutation configurator.",self)
if UD_STORE.has_definition(trajConfig["basename"],"atom_transmutation",expression):
if UD_STORE.has_definition(trajConfig["basename"],"atom_selection",expression):
ud = UD_STORE.get_definition(trajConfig["basename"],"atom_selection",expression)
self.transmutate(configuration, ud["indexes"], element)
else:
......
......@@ -115,7 +115,7 @@ class AtomSelectionWidget(UserDefinitionWidget):
panel = sizerItem.GetWindow()
children = panel.GetChildren()
udName = children[0]
oldSelection = udName.GetStringSelection()
oldSelection = udName.GetStringSelection()
udName.SetItems(uds)
udName.SetStringSelection(oldSelection)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment