Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/SelectionAction/Molecules/NotMoleculeByIdAction.cpp

    rbe21fa rf10b0c  
    3838/** =========== define the function ====================== */
    3939Action::state_ptr SelectionNotMoleculeByIdAction::performCall() {
    40   const molecule *mol = World::getInstance().getMolecule(MoleculeById(params.molindex));
     40  const molecule *mol = World::getInstance().getMolecule(MoleculeById(params.molindex.get()));
    4141  if (mol != NULL) {
    4242    if (World::getInstance().isSelected(mol)) {
    4343      LOG(1, "Unselecting molecule " << mol->name);
    44       World::getInstance().unselectAllMolecules(MoleculeById(params.molindex));
     44      World::getInstance().unselectAllMolecules(MoleculeById(params.molindex.get()));
    4545      LOG(0, World::getInstance().countSelectedMolecules() << " molecules remain selected.");
    4646      return Action::state_ptr(new SelectionNotMoleculeByIdState(params));
     
    5656  SelectionNotMoleculeByIdState *state = assert_cast<SelectionNotMoleculeByIdState*>(_state.get());
    5757
    58   World::getInstance().selectAllMolecules(MoleculeById(state->params.molindex));
     58  World::getInstance().selectAllMolecules(MoleculeById(state->params.molindex.get()));
    5959
    6060  return Action::state_ptr(_state);
     
    6464  SelectionNotMoleculeByIdState *state = assert_cast<SelectionNotMoleculeByIdState*>(_state.get());
    6565
    66   World::getInstance().unselectAllMolecules(MoleculeById(state->params.molindex));
     66  World::getInstance().unselectAllMolecules(MoleculeById(state->params.molindex.get()));
    6767
    6868  return Action::state_ptr(_state);
Note: See TracChangeset for help on using the changeset viewer.