Changeset 361 in PSPA for Interface_Web


Ignore:
Timestamp:
Mar 5, 2013, 11:35:57 AM (12 years ago)
Author:
garnier
Message:

correction d'un plantage au run sur un element fit

Location:
Interface_Web/trunk/pspaWT
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/History

    r359 r361  
    55     PSPA - Plateforme de simulation en physique des accélérateurs
    66     =========================================================
     7
     85 Mars : Laurent Garnier
     9- GWt_LigneFaisceau : protection contre un pointer NULL
     10- abstractElement : Ajout d'un cas oublié dans la version précédente
     11- ajoute du cas test philFit.save
    712
    8134 Mars : Laurent Garnier
     
    3641- softwareParmela  : ajout d'une protection sur NULL pointer dans createInputFile()
    3742- trivaluedBool.h : Changement des noms (confusions possibles) en TBoolError, TBoolIgnore, TBoolOk
     43
    38441er Mars : Laurent Garnier
    3945- Fix le bug sur le serveur : Mauvaise variable utilisée. Introduit le 26 février
  • Interface_Web/trunk/pspaWT/sources/controler/src/abstractElement.cc

    r360 r361  
    111111    }
    112112   
     113    trivaluedBool tb = TBoolError;
    113114    if ( std::find(acceptableSoftware_.begin(), acceptableSoftware_.end(), prog) != acceptableSoftware_.end()) {
     115        tb = TBoolOk;
     116    } else if ( std::find(ignoreSoftware_.begin(), ignoreSoftware_.end(), prog) != ignoreSoftware_.end()) {
     117        tb =TBoolIgnore;
     118    } else {
     119        tb = TBoolError;
     120    }
     121    if ((tb == TBoolOk) || (tb == TBoolIgnore)) {
    114122        if (prog == nomDeLogiciel::parmela){
    115123            abstractSoftware_ = new softwareParmela();
     
    123131            abstractSoftware_ = NULL;
    124132        }
    125     } else if ( std::find(ignoreSoftware_.begin(), ignoreSoftware_.end(), prog) != ignoreSoftware_.end()) {
    126         return TBoolIgnore;
    127     } else {
    128         return TBoolError;
    129133    }
    130     return TBoolOk;
     134    return tb;
    131135}
    132136
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_ligneFaisceau.cc

    r359 r361  
    266266        if (GWt_elementLigneFaisceau* elem = dynamic_cast <GWt_elementLigneFaisceau*> (ligneFaisceauLayout_->itemAt(a)->widget ())) {
    267267            if (index == i) {
    268                 elem->setBGColor(WColor(elem->getGWt_AbstractElement()->getAbstractElement()->getAbstractSoftware()->getColor()));
     268                if (elem->getGWt_AbstractElement()->getAbstractElement()->getAbstractSoftware()) {
     269                    elem->setBGColor(WColor(elem->getGWt_AbstractElement()->getAbstractElement()->getAbstractSoftware()->getColor()));
     270                }
    269271            }
    270272            index ++;
Note: See TracChangeset for help on using the changeset viewer.