]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Skip key in case of old style MG
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 10 Feb 2022 17:17:23 +0000 (18:17 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 10 Feb 2022 17:17:23 +0000 (18:17 +0100)
src/GHS3DPlugin/MG_Tetra_API.cxx

index 93eb485448b783e8d7be47558c0134f1fdd74ee9..33319c7230867f360aa02cef3ae3ea9225eaf46a 100644 (file)
@@ -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