From 5c0fa9d63506d2a0428b62887dc0cca66bfc24ca Mon Sep 17 00:00:00 2001 From: ana Date: Thu, 31 Jan 2013 15:43:04 +0000 Subject: [PATCH] Fix a bug with persistence. --- src/VISU_I/VISU_Result_i.cc | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2