From c64bf9fbfe6ab51501ef877a47fff1d68aab726a Mon Sep 17 00:00:00 2001 From: wcancino Date: Mon, 2 Mar 2009 14:34:14 +0000 Subject: [PATCH] small modifications git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1465 331e1502-861f-0410-8da2-ba01fb791d7f --- contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h b/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h index 46bc3526f..e416ecaa9 100644 --- a/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h +++ b/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h @@ -53,9 +53,15 @@ private: if(tree!=NULL)delete tree; tree=NULL; if(other.tree!=NULL)tree = new phylotreeIND(other.get_tree()); - if(!other.invalidObjectiveVector())this->objectiveVector( other.objectiveVector() ); + if(!other.invalidObjectiveVector()) + this->objectiveVector( other.objectiveVector() ); + else this->invalidateObjectiveVector(); + if(!other.invalidFitness())this->fitness( other.fitness() ); + else this->invalidateFitness(); + if(!other.invalidDiversity())this->diversity( other.diversity() ); + else this->invalidateDiversity(); } public: