From bb7b3d078293ddf21b8f40b1610a32eddd4ea22c Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 26 Apr 2013 13:01:14 +0000 Subject: [PATCH] Fix for the "0051899: curves are not shown in opened study" issue. --- src/VISU_I/VISU_Table_i.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VISU_I/VISU_Table_i.cc b/src/VISU_I/VISU_Table_i.cc index e359f866..6d736263 100644 --- a/src/VISU_I/VISU_Table_i.cc +++ b/src/VISU_I/VISU_Table_i.cc @@ -680,6 +680,7 @@ VISU::Storable* VISU::Table_i::Restore( const Storable::TRestoringMap& theMap, S myTitle = VISU::Storable::FindValue(theMap,"myTitle").toLatin1().data(); myOrientation = ( VISU::Table::Orientation )( VISU::Storable::FindValue(theMap,"myOrientation").toInt() ); mySObj = SALOMEDS::SObject::_duplicate(SO); + mySObj->Register(); return Build( true ); } /*! @@ -1327,6 +1328,7 @@ VISU::Storable* VISU::Curve_i::Restore( const Storable::TRestoringMap& theMap, S { if(MYDEBUG) MESSAGE(GetComment()); mySObj = SALOMEDS::SObject::_duplicate(theSO); + mySObj->Register(); SetName(VISU::Storable::FindValue(theMap,"myName").toLatin1().data(), false); myHRow = VISU::Storable::FindValue(theMap,"myHRow").toInt(); myVRow = VISU::Storable::FindValue(theMap,"myVRow").toInt(); -- 2.30.2