Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom.cpp

    r8cc22f rc32d21  
    270270  removeFromMolecule();
    271271  mol = _mol;
    272   if ((mol) && (!mol->containsAtom(this)))
     272  if ((mol) && (!mol->containsAtom(this))) {
     273    signOn(mol, AtomObservable::PositionChanged);
    273274    mol->insert(this);
     275  }
    274276}
    275277
     
    279281  ASSERT(!mol->containsAtom(this),
    280282      "atom::unsetMolecule() - old molecule "+toString(mol)+" still contains us!");
     283  signOff(mol, AtomObservable::PositionChanged);
    281284  mol = NULL;
    282285}
     
    289292  if(mol){
    290293    if(mol->containsAtom(this)){
     294      signOff(mol, AtomObservable::PositionChanged);
    291295      mol->erase(this);
    292296    }
Note: See TracChangeset for help on using the changeset viewer.