Ignore:
File:
1 edited

Legend:

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

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