]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
Management of <2.13 MeshGems version
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 11 Feb 2022 07:31:29 +0000 (08:31 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 11 Feb 2022 12:26:20 +0000 (13:26 +0100)
src/HYBRIDPlugin/MG_HYBRID_API.cxx

index c656b3490a7fa04926a3cad3b224ff11dd86ecda..9addf43baff7f64078c679cf7b28344fdbbf56b0 100644 (file)
@@ -873,8 +873,8 @@ bool MG_HYBRID_API::Compute( const std::string& cmdLine, std::string& errStr )
       errStr = "Problem with library SalomeMeshGemsKeyGenerator: " + errorTxt;
       return false;
     }
-
-    const_cast< std::string& >( cmdLine ) += " --key " + key;
+    if ( key != "0")
+      const_cast< std::string& >( cmdLine ) += " --key " + key;
   }
 
   int err = system( cmdLine.c_str() ); // run