From: gdd Date: Wed, 16 Mar 2011 18:44:34 +0000 (+0000) Subject: Fix bug for GHS3D version >= 4.2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a7d95db4c5950c372e2d47b6fac44c8d505933d6;p=plugins%2Fghs3dplugin.git Fix bug for GHS3D version >= 4.2 --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx index 3df5414..f0882b6 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx @@ -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( theSource); SMESH_Group_i* theGroup_i = SMESH::DownCast( 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;