]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0021368: EDF GEOM: From Salome forum, dump study leads to unknown exception
authorvsr <vsr@opencascade.com>
Wed, 5 Oct 2011 11:59:24 +0000 (11:59 +0000)
committervsr <vsr@opencascade.com>
Wed, 5 Oct 2011 11:59:24 +0000 (11:59 +0000)
src/GEOM/GEOM_Engine.cxx

index fcfbf3293be2cfd8b8ec14da3a53de1f0cbcd72c..53addff1f700071f7a4d62aa30f8d15990f3b169 100644 (file)
@@ -1258,6 +1258,12 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
             else
               aEndParamPos = aSection.Length() + 1;
 
+            if(MYDEBUG)
+              cout<<"aParamIndex: "<<aParamIndex<<" aStartParamPos: " <<aStartParamPos<<" aEndParamPos: "<<aEndParamPos<<endl;
+
+           if ( aStartParamPos == aEndParamPos)
+             continue;
+
             aParameter = aSection.SubString(aStartParamPos, aEndParamPos-1);
             if(MYDEBUG)
               cout<<"aParameter: "<<aParameter<<endl;