X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHexoticPlugin%2FMG_Hexotic_API.cxx;fp=src%2FHexoticPlugin%2FMG_Hexotic_API.cxx;h=36f7a7d5973a28dfd7f5dff9a21ae704e96e3487;hb=ea79e2746e464560371c27a8f851d237aa1873b0;hp=155f9dba3c5eb20bed06a85d4ac5f8d36802f53d;hpb=e38783c2e7ea1d929ca1fd2acb092cd8d1c12da5;p=plugins%2Fhexoticplugin.git 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