Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/CopyAction.cpp

    r34fbb3 rce7fdc  
    5959  MoleculeCopyState *state = assert_cast<MoleculeCopyState*>(_state.get());
    6060
    61   state->copy->removeAtomsinMolecule();
     61  for (molecule::iterator AtomRunner = state->copy->begin();
     62      !state->copy->empty();
     63      AtomRunner = state->copy->begin()) {
     64    (*AtomRunner)->removeAllBonds();
     65//    BondList& ListOfBonds = (*AtomRunner)->getListOfBonds();
     66//    for(BondList::iterator BondRunner = ListOfBonds.begin();
     67//        !ListOfBonds.empty();
     68//        BondRunner = ListOfBonds.begin()) {
     69//      delete(*BondRunner);
     70//    }
     71    atom *Walker = *AtomRunner;
     72    World::getInstance().destroyAtom(Walker);
     73  }
    6274  World::getInstance().destroyMolecule(state->copy);
    6375
Note: See TracChangeset for help on using the changeset viewer.