Changeset ad4a32d in tol


Ignore:
Timestamp:
Jun 17, 2011, 5:45:19 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
41d79a3
Parents:
dc4d2e6
Message:

Fixes #1260
Fixing also for Serie, the other virtual type

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/OIS/oisloader.cpp

    rdc4d2e6 rad4a32d  
    13091309          ERead(offset, serie_);
    13101310          BUserTimeSerie* x = NULL; 
     1311          List* tree = NULL;
    13111312          if(!offset)
    13121313          {
    … …  
    13501351            if(loadTree)
    13511352            {
    1352               List* tree = ReadTree(serie_);
     1353              tree = ReadTree(serie_);
    13531354              if(!tree)
    13541355              {
    … …  
    13631364                x->GetDataBuffer() = d;
    13641365                x->PutFirstCache(beginCache);
    1365                 if(!x->GetOisTree())
    1366                 {
    1367                   x->PutOisTree(tree);
    1368                 }
    1369                 tree->Destroy();
    13701366              }
    13711367              else
    … …  
    13811377                              "bounded time series ");
    13821378               #endif 
    1383                 if(tree) { tree->Destroy(); }
    13841379              }
    13851380            }
    … …  
    13971392          else               
    13981393          { result = x; }
     1394          if(tree)
     1395          {
     1396            if(result && !result->GetOisTree()) { result->PutOisTree(tree); }
     1397            tree->Destroy();
     1398          }
    13991399        }
    14001400        else if(tol_type == BGI_TimeSet)
    … …  
    14021402          BINT64 offset;
    14031403          ERead(offset, object_);
    1404                     if(name=="Cuatrimestral")
    1405                       printf("");
    1406 
    14071404          timeset_->SetPos(offset);
    14081405          BDate inf, sup, beginCache, endCache;
Note: See TracChangeset for help on using the changeset viewer.