- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Molecules/NotMoleculeByIdAction.cpp
rbe21fa rf10b0c 38 38 /** =========== define the function ====================== */ 39 39 Action::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())); 41 41 if (mol != NULL) { 42 42 if (World::getInstance().isSelected(mol)) { 43 43 LOG(1, "Unselecting molecule " << mol->name); 44 World::getInstance().unselectAllMolecules(MoleculeById(params.molindex ));44 World::getInstance().unselectAllMolecules(MoleculeById(params.molindex.get())); 45 45 LOG(0, World::getInstance().countSelectedMolecules() << " molecules remain selected."); 46 46 return Action::state_ptr(new SelectionNotMoleculeByIdState(params)); … … 56 56 SelectionNotMoleculeByIdState *state = assert_cast<SelectionNotMoleculeByIdState*>(_state.get()); 57 57 58 World::getInstance().selectAllMolecules(MoleculeById(state->params.molindex ));58 World::getInstance().selectAllMolecules(MoleculeById(state->params.molindex.get())); 59 59 60 60 return Action::state_ptr(_state); … … 64 64 SelectionNotMoleculeByIdState *state = assert_cast<SelectionNotMoleculeByIdState*>(_state.get()); 65 65 66 World::getInstance().unselectAllMolecules(MoleculeById(state->params.molindex ));66 World::getInstance().unselectAllMolecules(MoleculeById(state->params.molindex.get())); 67 67 68 68 return Action::state_ptr(_state);
Note:
See TracChangeset
for help on using the changeset viewer.