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): ...@@ -91,7 +91,7 @@ class AtomTransmutationConfigurator(IConfigurator):
if not isinstance(expression,basestring): if not isinstance(expression,basestring):
raise ConfiguratorError("Wrong format for atom transmutation configurator.",self) 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) ud = UD_STORE.get_definition(trajConfig["basename"],"atom_selection",expression)
self.transmutate(configuration, ud["indexes"], element) self.transmutate(configuration, ud["indexes"], element)
else: else:
......
...@@ -115,7 +115,7 @@ class AtomSelectionWidget(UserDefinitionWidget): ...@@ -115,7 +115,7 @@ class AtomSelectionWidget(UserDefinitionWidget):
panel = sizerItem.GetWindow() panel = sizerItem.GetWindow()
children = panel.GetChildren() children = panel.GetChildren()
udName = children[0] udName = children[0]
oldSelection = udName.GetStringSelection() oldSelection = udName.GetStringSelection()
udName.SetItems(uds) udName.SetItems(uds)
udName.SetStringSelection(oldSelection) 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