From 62a9594172260aafeb90d1dd058027105d6ac807 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 10 Feb 2022 18:17:23 +0100 Subject: [PATCH] Skip key in case of old style MG --- src/GHS3DPlugin/MG_Tetra_API.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GHS3DPlugin/MG_Tetra_API.cxx b/src/GHS3DPlugin/MG_Tetra_API.cxx index 93eb485..33319c7 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 == "1") + const_cast< std::string& >( cmdLine ) += " --key " + key; } int err = system( cmdLine.c_str() ); // run -- 2.39.2