Changeset 948 for trunk/lib/Graph.cc


Ignore:
Timestamp:
Dec 4, 2009, 1:33:12 AM (12 years ago)
Author:
Peter Johansson
Message:

dealing with the case when repo is imported using cvs2svn, in whcih case date of rev 0 becomes the date of the importion (which is after date of rev 1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r929 r948  
    8585#ifdef HAVE_PLPLOT
    8686    if (!plots_) {
    87       xmin_= date_xticks() ? Date(xticks_.front()).seconds() : 0;
     87      // date[0] is not the oldest when repo is imported with cvs2svn
     88      xmin_= date_xticks() ?
     89        std::min( Date(xticks_[0]), Date(xticks_[1]) ).seconds() : 0;
    8890      xmax_= date_xticks() ? Date(xticks_.back()).seconds() : y.size();
    8991      xrange_=xmax_-xmin_;
Note: See TracChangeset for help on using the changeset viewer.