From 46248f9be44a19050a26d6a77896f14f481b64e0 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 18 Nov 2008 14:34:21 +0000 Subject: [PATCH] Dump Python extension --- src/GEOM/GEOM_Engine.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2