Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/SelectionAction/Atoms/AtomByElementAction.cpp

    rbe21fa rf10b0c  
    4141/** =========== define the function ====================== */
    4242Action::state_ptr SelectionAtomByElementAction::performCall() {
    43   LOG(1, "Selecting atoms of type " << *params.elemental);
     43  LOG(1, "Selecting atoms of type " << *params.elemental.get());
    4444  std::vector<atom *> selectedAtoms = World::getInstance().getAllAtoms(AtomsBySelection());
    45   World::getInstance().selectAllAtoms(AtomByType(params.elemental));
     45  World::getInstance().selectAllAtoms(AtomByType(params.elemental.get()));
    4646  LOG(0, World::getInstance().countSelectedAtoms() << " atoms selected.");
    4747  return Action::state_ptr(new SelectionAtomByElementState(selectedAtoms,params));
     
    5151  SelectionAtomByElementState *state = assert_cast<SelectionAtomByElementState*>(_state.get());
    5252
    53   World::getInstance().unselectAllAtoms(AtomByType(state->params.elemental));
     53  World::getInstance().unselectAllAtoms(AtomByType(state->params.elemental.get()));
    5454  BOOST_FOREACH(atom *_atom, state->selectedAtoms)
    5555    World::getInstance().selectAtom(_atom);
     
    6161  SelectionAtomByElementState *state = assert_cast<SelectionAtomByElementState*>(_state.get());
    6262
    63   World::getInstance().selectAllAtoms(AtomByType(state->params.elemental));
     63  World::getInstance().selectAllAtoms(AtomByType(state->params.elemental.get()));
    6464
    6565  return Action::state_ptr(_state);
Note: See TracChangeset for help on using the changeset viewer.