Salome HOME
Skip key in case of old style MG V9_9_0a1 V9_9_0a2 V9_9_0b1
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 10 Feb 2022 17:17:23 +0000 (18:17 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 11 Feb 2022 12:23:56 +0000 (13:23 +0100)
src/GHS3DPlugin/MG_Tetra_API.cxx

index 93eb485448b783e8d7be47558c0134f1fdd74ee9..9bf3892bf69ab649d4f68b25439110a7e8086cb9 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 != "0")
+      const_cast< std::string& >( cmdLine ) += " --key " + key;
   }
 
   int err = system( cmdLine.c_str() ); // run