Changeset 579 for trunk/lib/File.cc


Ignore:
Timestamp:
Mar 18, 2008, 3:11:51 PM (13 years ago)
Author:
Peter Johansson
Message:

Merged patch release 0.6.5 to the trunk. Delta 0.6.5 - 0.6.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r552 r579  
    3434#include "SVNlog.h"
    3535
     36#include <algorithm>
    3637#include <cassert>
    3738#include <cstdio>
     
    229230    else {
    230231      last = Date(GnuplotFE::instance()->dates().back()).seconds();
    231       first = Date(GnuplotFE::instance()->dates()[0]).seconds();
     232      // earliest date corresponds either to revision 0 or revision 1
     233      first = std::min(Date(GnuplotFE::instance()->dates()[0]).seconds(),
     234                       Date(GnuplotFE::instance()->dates()[1]).seconds());
    232235    }
    233236    // color is calculated linearly on time, c = kt + m
Note: See TracChangeset for help on using the changeset viewer.