Salome HOME
Fix for the "0051899: curves are not shown in opened study" issue.
[modules/visu.git] / src / VISU_I / VISU_Table_i.cc
index e359f866a5fc9164ac87ad5d89d612b9264a2e5c..6d7362637831c0b62c6701798fbd0426f4eb7ada 100644 (file)
@@ -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();