From: Anthony Geay Date: Fri, 11 Feb 2022 07:31:29 +0000 (+0100) Subject: Management of <2.13 MeshGems version X-Git-Tag: V9_8_0_1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=246723c8dd884f6afefa3228575993599ce59cee;p=plugins%2Fhybridplugin.git Management of <2.13 MeshGems version --- diff --git a/src/HYBRIDPlugin/MG_HYBRID_API.cxx b/src/HYBRIDPlugin/MG_HYBRID_API.cxx index c656b34..9addf43 100644 --- a/src/HYBRIDPlugin/MG_HYBRID_API.cxx +++ b/src/HYBRIDPlugin/MG_HYBRID_API.cxx @@ -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