]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Merge from BR_V5_DEV 17Feb09
authorvsr <vsr@opencascade.com>
Tue, 17 Feb 2009 12:10:20 +0000 (12:10 +0000)
committervsr <vsr@opencascade.com>
Tue, 17 Feb 2009 12:10:20 +0000 (12:10 +0000)
src/GEOM/GEOM_Engine.cxx

index 67658d480207b3fd0ec7670b71bea0e7acd02ea7..e8a25f375aa0c4707d9dbade34c8698badd37c8d 100644 (file)
@@ -712,9 +712,7 @@ void ProcessFunction(Handle(GEOM_Function)&   theFunction,
 {
   if (theFunction.IsNull()) return;
 
-  // not to process twice
   if (theProcessed.Contains(theFunction->GetEntry())) return;
-  theProcessed.Add(theFunction->GetEntry());
 
   // pass functions, that depends on nonexisting ones
   bool doNotProcess = false;
@@ -753,6 +751,7 @@ void ProcessFunction(Handle(GEOM_Function)&   theFunction,
     theIgnoreObjs.insert(anObjEntry.ToCString());
     return;
   }
+  theProcessed.Add(theFunction->GetEntry());
 
   TCollection_AsciiString aDescr = theFunction->GetDescription();
   if(aDescr.Length() == 0) return;
@@ -928,6 +927,8 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
        aStartPos++;
       if( aCommand.Value( aEndPos-1 ) == C_SQR_BRACKET )
        aEndPos--;
+      if ( aStartPos == aEndPos )
+        continue; // PAL20889: for "[]"
 
       if(MYDEBUG) 
        cout<<"aStartPos = "<<aStartPos<<", aEndPos = "<<aEndPos<<endl;