Changeset 44d90fd in tol


Ignore:
Timestamp:
Feb 24, 2012, 7:33:33 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
b6a0831
Parents:
b4f1dbf
Message:

Fixes #1451

If there is a visible TimeSet with the same name of an OIS-stored TimeSet which expression is not reproducible
then the previously created will be used to avoid heavy warnings.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/OIS/oisloader.cpp

    rb4f1dbf r44d90fd  
    14441444            else
    14451445            {
    1446               BText expr = Compact(BParser::Unparse(tree,"  ","\n"));
    1447               if(name.HasName()) { expr = name+" = "+expr; }
    1448               Warning(BText("Cannot rebuild virtual expression of non "
    1449                       "bounded TimeSet ")+expr+ "\nOnly cached "
    1450                       "dates will be accessible between ["+beginCache+","+
    1451                       endCache+"]\nTo avoid this problem save just "
    1452                       "bounded time sets or use expressions that could "
    1453                       "be evaluated at OIS loading time." );
     1446              x = (BUserTimeSet*)GraTimeSet()->FindOperand(name,true);
     1447              if(!x)
     1448              {
     1449                BText expr = Compact(BParser::Unparse(tree,"  ","\n"));
     1450                if(name.HasName()) { expr = name+" = "+expr; }
     1451                Warning(BText("Cannot rebuild virtual expression of non "
     1452                        "bounded TimeSet ")+expr+ "\nOnly cached "
     1453                        "dates will be accessible between ["+beginCache+","+
     1454                        endCache+"]\nTo avoid this problem save just "
     1455                        "bounded time sets or use expressions that could "
     1456                        "be evaluated at OIS loading time." );
     1457              }
    14541458            }
    14551459          }
Note: See TracChangeset for help on using the changeset viewer.