Dump Python extension

This commit is contained in:
ouv 2008-11-18 14:34:21 +00:00
parent 1978ffea14
commit 46248f9be4

View File

@ -828,7 +828,10 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
if(i == 1) if(i == 1)
{ {
aStartPos = theCommand.Location(O_BRACKET, 1, theCommand.Length()) + 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) //Replace last parameter (bettwen ',' character and ')' character)
else if(i == aTotalNbParams) else if(i == aTotalNbParams)