Ignore:
File:
1 edited

Legend:

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

    rbe21fa rf10b0c  
    4040/** =========== define the function ====================== */
    4141Action::state_ptr SelectionNotMoleculeByNameAction::performCall() {
    42   LOG(1, "Unselecting all molecule called " << params.molname);
     42  LOG(1, "Unselecting all molecule called " << params.molname.get());
    4343  std::vector<molecule *> unselectedMolecules =
    44       World::getInstance().getAllMolecules((!MoleculesBySelection()) && MoleculeByName(params.molname));
    45   World::getInstance().unselectAllMolecules(MoleculeByName(params.molname));
     44      World::getInstance().getAllMolecules((!MoleculesBySelection()) && MoleculeByName(params.molname.get()));
     45  World::getInstance().unselectAllMolecules(MoleculeByName(params.molname.get()));
    4646  LOG(0, World::getInstance().countSelectedMolecules() << " molecules remain selected.");
    4747
     
    5252  SelectionNotMoleculeByNameState *state = assert_cast<SelectionNotMoleculeByNameState*>(_state.get());
    5353
    54   World::getInstance().selectAllMolecules(MoleculeByName(state->params.molname));
     54  World::getInstance().selectAllMolecules(MoleculeByName(state->params.molname.get()));
    5555  BOOST_FOREACH( molecule *mol, state->unselectedMolecules)
    5656    World::getInstance().unselectMolecule(mol);
     
    6262  SelectionNotMoleculeByNameState *state = assert_cast<SelectionNotMoleculeByNameState*>(_state.get());
    6363
    64   World::getInstance().unselectAllMolecules(MoleculeByName(state->params.molname));
     64  World::getInstance().unselectAllMolecules(MoleculeByName(state->params.molname.get()));
    6565
    6666  return Action::state_ptr(_state);
Note: See TracChangeset for help on using the changeset viewer.