Changeset 1287 for trunk/lib/File.cc


Ignore:
Timestamp:
Nov 9, 2010, 4:47:22 AM (11 years ago)
Author:
Peter Johansson
Message:

use same range of revisions in blame output colors as in plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r1286 r1287  
    161161    if (!Graph::date_xticks()) {
    162162      using_dates=false;
    163       last = stats_["classic"].revision();
     163      first = Graph::rev_min();
     164      last = Graph::rev_max();
    164165    }
    165166    else {
    166       last = Graph::xticks().back();
    167       // earliest date corresponds either to revision 0 or revision 1
    168       first = std::min(Graph::xticks()[0],Graph::xticks()[1]);
    169     }
     167      first = Graph::xticks()[Graph::rev_min()];
     168      assert(Graph::rev_max()<Graph::xticks().size());
     169      last = Graph::xticks()[Graph::rev_max()];
     170    }
     171    assert(last>first);
    170172    // color is calculated linearly on time, c = kt + m
    171173    // brightest color (for oldest rev in log) is set to 192.
Note: See TracChangeset for help on using the changeset viewer.