From ea79e2746e464560371c27a8f851d237aa1873b0 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 11 Feb 2022 08:19:44 +0100 Subject: [PATCH] Deal with old MG suite --- src/HexoticPlugin/MG_Hexotic_API.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HexoticPlugin/MG_Hexotic_API.cxx b/src/HexoticPlugin/MG_Hexotic_API.cxx index 155f9db..36f7a7d 100644 --- a/src/HexoticPlugin/MG_Hexotic_API.cxx +++ b/src/HexoticPlugin/MG_Hexotic_API.cxx @@ -844,8 +844,9 @@ bool MG_Hexotic_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