Changeset 41d79a3 in tol


Ignore:
Timestamp:
Jun 17, 2011, 6:24:55 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f5c1a77
Parents:
ad4a32d
Message:

Refs #1262

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

Location:
tol/btol
Files:
2 edited

Legend:

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

    rad4a32d r41d79a3  
    955955    else if(dating!=right)
    956956    {
    957       if(!dating->IsCompatibleWith(*right))
     957      if(!dating->IsCompatibleWith(*right,FirstDate(),LastDate()))
    958958      {
    959959        dating = NULL;
    … …  
    963963    {
    964964      BText no_dating = "NO_DATING";
    965       BText lName = left ?left ->Identify():no_dating;
    966       BText rName = right?right->Identify():no_dating;
     965      BText lName = left ?left ->Identify():no_dating+";";
     966      BText rName = right?right->Identify():no_dating+";";
     967      if(!left->Inf().HasValue() || !right->Sup().HasValue())
     968      {
     969        lName += BText(" //Expression is finite or has been truncated to interval [")<<left->Inf().Name()+","+left->Sup().Name()+"]";
     970      }
     971      if(!right->Inf().HasValue() || !right->Sup().HasValue())
     972      {
     973        rName += BText(" //Expression is finite or has been truncated to interval [")<<right->Inf().Name()+","+right->Sup().Name()+"]";
     974      }
    967975      Error(I2("Cannot concat series with incompatible dating or without "
    968976         "dating.",
    … …  
    970978         "o sin fechado.")+
    971979      "\nSeries:\n" +
    972       LeftSer ()->Identify() + " -> "+lName+";\n"+
    973       RightSer()->Identify() + " -> "+rName+";\n");
     980      LeftSer ()->Identify() + " -> "+lName+"\n"+
     981      RightSer()->Identify() + " -> "+rName+"\n");
    974982    }
    975983    PutDating(dating);
  • tol/btol/timeset_type/tms.cpp

    rad4a32d r41d79a3  
    525525  if(!first.HasValue()) { first = BDate::DefaultFirst(); }
    526526  if(!last .HasValue()) { last  = BDate::DefaultLast (); }
    527   BDate d1  = FirstNoGreat(first);
     527  BDate d1 = FirstNoGreat(first);
    528528  BDate d2 = tms.FirstNoGreat(first);
     529  if(d1!=d2) { return(BFALSE); }
    529530  while(d1<=last)
    530531  {
Note: See TracChangeset for help on using the changeset viewer.