Salome HOME
0023299: [CEA] Finalize multi-study removal
[plugins/hexoticplugin.git] / src / GUI / HexoticPluginGUI_HypothesisCreator.cxx
index be6ab02145adf8a2f80d9feb34d3820b8f13310d..9fee2cf4c9921ca39132b485eaed3f232f970fa2 100644 (file)
@@ -742,7 +742,7 @@ bool HexoticPluginGUI_HypothesisCreator::readSizeMapsFromWidgets( HexoticHypothe
 GEOM::GEOM_Object_var HexoticPluginGUI_HypothesisCreator::entryToObject( std::string entry) const
 {
   SMESH_Gen_i* smeshGen_i = SMESH_Gen_i::GetSMESHGen();
-  SALOMEDS::Study_var myStudy = smeshGen_i->GetCurrentStudy();
+  SALOMEDS::Study_var myStudy = smeshGen_i->GetStudy();
   GEOM::GEOM_Object_var aGeomObj;
   SALOMEDS::SObject_var aSObj = myStudy->FindObjectID( entry.c_str() );
   if (!aSObj->_is_nil()) {