From: ana Date: Thu, 31 Jan 2013 15:43:04 +0000 (+0000) Subject: Fix a bug with persistence. X-Git-Tag: mergeto_V7_main_11Feb13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c0fa9d63506d2a0428b62887dc0cca66bfc24ca;p=modules%2Fvisu.git Fix a bug with persistence. --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 4ef802f8..f50496a5 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -779,6 +779,7 @@ VISU::Result_i { if(MYDEBUG) MESSAGE("Result_i::Restore - " << thePrefix); mySObject = SALOMEDS::SObject::_duplicate(theSObject); + mySObject->Register(); // Increment reference counter to stored SObject mySComponent = mySObject->GetFatherComponent(); myStudyDocument = theSObject->GetStudy(); myStudy = VISU::GetStudy(myStudyDocument);