From 5f0d9f42f55f6a95eaf8c427e371d160fcb3174e Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 11 Feb 2022 08:31:29 +0100 Subject: [PATCH] Management of <2.13 MeshGems version --- src/HYBRIDPlugin/MG_HYBRID_API.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2