From: ouv Date: Tue, 18 Nov 2008 14:34:21 +0000 (+0000) Subject: Dump Python extension X-Git-Tag: TG_DumpPython_Extension_3~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46248f9be44a19050a26d6a77896f14f481b64e0;p=modules%2Fgeom.git Dump Python extension --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index cb6791465..6b5a752d5 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -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)