From: Anthony Geay Date: Thu, 10 Feb 2022 17:17:23 +0000 (+0100) Subject: Skip key in case of old style MG X-Git-Tag: V9_9_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25c2c1eef93394f98b2ac494f5b29a38a8797656;p=plugins%2Fghs3dplugin.git Skip key in case of old style MG --- diff --git a/src/GHS3DPlugin/MG_Tetra_API.cxx b/src/GHS3DPlugin/MG_Tetra_API.cxx index 93eb485..9bf3892 100644 --- a/src/GHS3DPlugin/MG_Tetra_API.cxx +++ b/src/GHS3DPlugin/MG_Tetra_API.cxx @@ -839,7 +839,8 @@ bool MG_Tetra_API::Compute( const std::string& cmdLine, std::string& errStr ) 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