Changeset 1057 in Sophya for trunk/SophyaPI/PIext/nomhistadapter.cc
- Timestamp:
- Jul 7, 2000, 10:50:03 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomhistadapter.cc
r719 r1057 39 39 { 40 40 HProf * hp = dynamic_cast<HProf *>(mHis); 41 if (hp == NULL) return( new Histo(*mHis) ); 42 else return( new HProf(*hp) ); 41 if (hp == NULL) return( new Histo(*mHis) ); 42 // C'est un HProf, il faut l'updater si on le copie 43 // car seule la partie "Histo" est copiee! 44 if( !(hp->IsOk()) ) hp->UpdateHisto(); 45 return( new HProf(*hp) ); 43 46 } 44 47
Note:
See TracChangeset
for help on using the changeset viewer.