From: rnv Date: Fri, 26 Apr 2013 13:01:14 +0000 (+0000) Subject: Fix for the "0051899: curves are not shown in opened study" issue. X-Git-Tag: NEWBOP_OCCdev_3f4689a163 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=HEAD;p=modules%2Fvisu.git Fix for the "0051899: curves are not shown in opened study" issue. --- 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();