]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Dump Python extension
authorouv <ouv@opencascade.com>
Tue, 18 Nov 2008 14:34:21 +0000 (14:34 +0000)
committerouv <ouv@opencascade.com>
Tue, 18 Nov 2008 14:34:21 +0000 (14:34 +0000)
src/GEOM/GEOM_Engine.cxx

index cb67914656457b486c82287fb0d2bca7ae3938d7..6b5a752d5b1efb92ddcbd3f2b612aff73a3f94f4 100644 (file)
@@ -828,7 +828,10 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
     if(i == 1)
       {
         aStartPos = theCommand.Location(O_BRACKET, 1, theCommand.Length()) + 1;
-        aEndPos = theCommand.Location(COMMA, 1, theCommand.Length());
+       if(aTotalNbParams != 1 )
+         aEndPos = theCommand.Location(COMMA, 1, theCommand.Length());
+       else
+         aEndPos = theCommand.Location(C_BRACKET, 1, theCommand.Length());     
       }
     //Replace last parameter (bettwen ',' character and ')' character)
     else if(i == aTotalNbParams)