Salome HOME
PAL20917 EDF 1431 SMESH: Warning about Hexotic
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshOp.cxx
index 84107dc27e1734034a7e4ef3f121fb0af41d4169..c8217239dce43cc767cc542ab9e76ab69500f1a2 100644 (file)
@@ -1858,7 +1858,7 @@ SMESH::SMESH_Hypothesis_var SMESHGUI_MeshOp::getAlgo( const int theDim )
       {
         // Call hypothesis creation server method (without GUI)
         SMESH::SMESH_Hypothesis_var aHyp =
-          SMESH::CreateHypothesis(aHypName, aHypData->Label, true);
+          SMESH::CreateHypothesis(aHypName, aHypName, true);
 #ifdef WITHGENERICOBJ
         if (!CORBA::is_nil(aHyp))
           aHyp->Destroy();
@@ -1876,7 +1876,7 @@ SMESH::SMESH_Hypothesis_var SMESHGUI_MeshOp::getAlgo( const int theDim )
           aCreator->create(true, aHypName, myDlg, 0, QString::null );
         else {
           SMESH::SMESH_Hypothesis_var aHyp =
-            SMESH::CreateHypothesis(aHypName, aHypData->Label, true);
+            SMESH::CreateHypothesis(aHypName, aHypName, true);
 #ifdef WITHGENERICOBJ
           if (!CORBA::is_nil(aHyp))
             aHyp->Destroy();