Salome HOME
Unicode support: correct handling of unicode on GUI level
[modules/smesh.git] / src / SMESH_SWIG / smesh_algorithm.py
index 8d0946de12b043839edf5fca4d9348caa1ed5bf2..92999bf2e2c5a8c861352cf1f177a79c5b45185d 100644 (file)
@@ -58,7 +58,7 @@ import SMESH, StdMeshers
 #  @ingroup l2_algorithms
 class Mesh_Algorithm:
     
-    ## Private constuctor
+    ## Private constructor
     def __init__(self):
         self.mesh = None
         self.geom = None
@@ -70,7 +70,7 @@ class Mesh_Algorithm:
     #  Finds only the hypotheses created in smeshpyD engine.
     #  @return SMESH.SMESH_Hypothesis
     def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
-        study = smeshpyD.GetCurrentStudy()
+        study = salome.myStudy
         if not study: return None
         #to do: find component by smeshpyD object, not by its data type
         scomp = study.FindComponent(smeshpyD.ComponentDataType())
@@ -114,7 +114,7 @@ class Mesh_Algorithm:
     #  Finds only the algorithms, which have been created in smeshpyD engine.
     #  @return SMESH.SMESH_Algo
     def FindAlgorithm (self, algoname, smeshpyD):
-        study = smeshpyD.GetCurrentStudy()
+        study = salome.myStudy
         if not study: return None
         #to do: find component by smeshpyD object, not by its data type
         scomp = study.FindComponent(smeshpyD.ComponentDataType())