Ignore:
Timestamp:
Jan 21, 2014, 5:13:05 PM (10 years ago)
Author:
garnier
Message:

Correction d'un bug. La suppression d'un

élément est désormais effective

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/src/sector.cc

    r476 r483  
    107107}
    108108
     109void sector::removeElement(abstractElement* currentElement) {
     110  if (currentElement == NULL) return;
     111 
     112  for (unsigned int i=0; i<sectionToExecute_.size(); i++) {
     113    sectionToExecute* section = sectionToExecute_[i];
     114   
     115    if (section->isInside(currentElement)) {
     116      section->removeElement(currentElement);
     117    }
     118  }
     119}
     120
     121
    109122void sector::clearSectionToExecute()
    110123{
Note: See TracChangeset for help on using the changeset viewer.