Changeset d54e37 for src/Actions/SelectionAction/Atoms/PopAtomsAction.cpp
- Timestamp:
- Apr 23, 2021, 9:02:12 PM (5 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 87c1cc
- Parents:
- 7df863
- git-author:
- Frederik Heber <frederik.heber@…> (04/10/21 14:16:42)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/23/21 21:02:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Atoms/PopAtomsAction.cpp
r7df863 rd54e37 50 50 ActionState::ptr SelectionPopAtomsAction::performCall() { 51 51 // create undo state 52 const std::vector<const atom *> selectedAtoms = 53 const_cast<const World &>(World::getInstance()).getSelectedAtoms(); 52 const std::vector<atomId_t> selectedAtomIds = World::getConstInstance().getSelectedAtomIds(); 54 53 LOG(1, "Popping atom selection."); 55 54 World::getInstance().popAtomSelection(); 56 return ActionState::ptr(new SelectionPopAtomsState(selectedAtom s, params));55 return ActionState::ptr(new SelectionPopAtomsState(selectedAtomIds, params)); 57 56 } 58 57 … … 64 63 // and re-create present selection 65 64 World::getInstance().clearAtomSelection(); 66 BOOST_FOREACH(const atom *_atom, state->selectedAtoms)67 World::getInstance().selectAtom(_atom );65 BOOST_FOREACH(const atomId_t _atomid, state->selectedAtomIds) 66 World::getInstance().selectAtom(_atomid); 68 67 69 68 return ActionState::ptr(_state);
Note:
See TracChangeset
for help on using the changeset viewer.
