Changeset 3055 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Aug 13, 2006, 12:36:46 AM (19 years ago)
Author:
cmv
Message:

Protection draw pour histo vides cmv 13/8/2006

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pihisto.cc

    r2615 r3055  
    8181
    8282  if (!mHisto)  return;
     83  if (mHisto->NBins()<=0) return;
    8384 
    8485  if( typeid(*mHisto)==typeid(HProf) ) mHisto->UpdateHisto();
  • trunk/SophyaPI/PIext/pihisto2d.cc

    r2615 r3055  
    260260
    261261if(!mHisto) return;
     262if(mHisto->NBinX()<=0 || mHisto->NBinY()<=0) return;
     263
    262264// Caracteristiques histogramme
    263265double dx = mHisto->WBinX(),dy = mHisto->WBinY();
Note: See TracChangeset for help on using the changeset viewer.