]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Fix bug for GHS3D version >= 4.2
authorgdd <gdd>
Wed, 16 Mar 2011 18:44:34 +0000 (18:44 +0000)
committergdd <gdd>
Wed, 16 Mar 2011 18:44:34 +0000 (18:44 +0000)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx

index 3df541434c42ecba7101c4475827f65a112cbf37..f0882b6dc5d95dd1ae3f850e9ba777a09886dd40 100644 (file)
@@ -464,22 +464,22 @@ void GHS3DPlugin_Hypothesis_i::SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSour
   throw (SALOME::SALOME_Exception)
 {
 #if GHS3D_VERSION >= 42
-  _SetEnforcedMesh(thesource, theType, -1.0);
+  _SetEnforcedMesh(theSource, theType, -1.0);
   SMESH_Mesh_i* theMesh_i = SMESH::DownCast<SMESH_Mesh_i*>( theSource);
   SMESH_Group_i* theGroup_i = SMESH::DownCast<SMESH_Group_i*>( theSource);
   if (theGroup_i)
   {
     SMESH::TPythonDump () << _this() << ".SetEnforcedMesh( " 
-                          << theSource << ", " << theType << ", " << theSize << " )";
+                          << theSource << ", " << theType << " )";
   }
   else if (theMesh_i)
   {
     SMESH::TPythonDump () << _this() << ".SetEnforcedMesh( " 
-                          << theSource << ".GetMesh(), " << theType << ", " << theSize << " )";
+                          << theSource << ".GetMesh(), " << theType << " )";
   }
 #else
   SALOME::ExceptionStruct ExDescription;
-  ExDescription.text = "Bad version of GHS3D";
+  ExDescription.text = "Bad version of GHS3D. It must >= 4.2.";
   ExDescription.type = SALOME::BAD_PARAM;
   ExDescription.sourceFile = "GHS3DPlugin_Hypothesis::SetEnforcedMesh(theSource, theType)";
   ExDescription.lineNumber = 445;