Changeset 1090 in Sophya for trunk/SophyaPI/PIext/nomhistadapter.cc
- Timestamp:
- Jul 25, 2000, 12:20:52 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomhistadapter.cc
r1057 r1090 38 38 AnyDataObj* NOMAdapter_Histo::GetCopyObj() 39 39 { 40 mHis->UpdateHisto(); // pour le cas ou c'est un HProf 40 41 HProf * hp = dynamic_cast<HProf *>(mHis); 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(); 42 if(hp==NULL) return( new Histo(*mHis) ); 45 43 return( new HProf(*hp) ); 46 44 }
Note:
See TracChangeset
for help on using the changeset viewer.