Changeset e7490ea in tol


Ignore:
Timestamp:
Apr 28, 2011, 5:17:10 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
9bb0198
Parents:
0c16934
Message:

Fixes #1188

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

Location:
tol/btol/serie_type
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/serie_type/tsr.cpp

    r0c16934 re7490ea  
    258258  if(!Dating()) { return(-1); }
    259259  BInt index = -1;
    260 
    261   if(FirstDate().HasValue()) index = Dating()->Difference(FirstDate(),dte);
    262 
     260  BDate d = Dating()->Prev(Dating()->Next(dte));
     261  if(FirstDate().HasValue()) index = Dating()->Difference(FirstDate(),d);
    263262  return(index);
    264263}
  • tol/btol/serie_type/tsrgrav.cpp

    r0c16934 re7490ea  
    285285      if(prev.HasValue())
    286286      {
    287         BHash hash; center_->GetHashBetween(hash, dte, next);
     287        BHash hash; center_->GetHashBetween(hash, prev, next);
    288288        dat = hash.Size();
    289289        if(hash[hash.Size()-1]==next.Hash()) { dat -= 1; }
Note: See TracChangeset for help on using the changeset viewer.