Changeset 3cb1b13c in tol


Ignore:
Timestamp:
May 24, 2017, 9:39:02 AM (9 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
18d02f2e
Parents:
86bad57
Message:

se corrige un error en la función Element con argumento opcional

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7474 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bgrammar/spfuninst.cpp

    r86bad57 r3cb1b13c  
    925925            }
    926926          result = set.GetElement((BInt)Real(uIndex));
    927           if (nb>=3)
     927          if (!result && nb>=3)
    928928            {
    929929            if(oldEnabled)
    … …  
    932932              }
    933933            result = GraAnything()->EvaluateTree(Branch(tre,3));
     934            }
     935          if(nb>=3)
     936            {
     937            if(oldEnabled)
     938              {
     939              BOut::Enable();
     940              }
    934941            }
    935942          }
    … …  
    961968              }
    962969            result = set.GetElement(Text(uIndex).String());
    963             if (nb>=3)
     970            if (!result && nb>=3)
    964971              {
    965972              if(oldEnabled)
    … …  
    968975                }
    969976              result = GraAnything()->EvaluateTree(Branch(tre,3));
     977              }
     978            if(nb>=3)
     979              {
     980              if(oldEnabled)
     981                {
     982                BOut::Enable();
     983                }
    970984              }
    971985            }
Note: See TracChangeset for help on using the changeset viewer.