Changeset 502


Ignore:
Timestamp:
Oct 20, 2007, 2:06:32 AM (14 years ago)
Author:
Peter Johansson
Message:

fixes #278

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.6-stable/lib/File.cc

    r470 r502  
    3333#include "SVNlog.h"
    3434
     35#include <algorithm>
    3536#include <cassert>
    3637#include <cstdio>
     
    110111    else {
    111112      last = Date(GnuplotFE::instance()->dates().back()).seconds();
    112       first = Date(GnuplotFE::instance()->dates()[0]).seconds();
     113      // earliest date corresponds either to revision 0 or revision 1
     114      first = std::min(Date(GnuplotFE::instance()->dates()[0]).seconds(),
     115                       Date(GnuplotFE::instance()->dates()[1]).seconds());
    113116    }
    114117    // color is calculated linearly on time, c = kt + m
Note: See TracChangeset for help on using the changeset viewer.