Ignore:
Timestamp:
Nov 24, 2009, 1:23:02 AM (12 years ago)
Author:
Peter Johansson
Message:

fixes #412

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/lib/Stats.cc

    r847 r879  
    368368    assert(stat->find("all")!=stat->end());
    369369    std::vector<unsigned int> total=get_vector(*stat, "all");   
    370     double yrange_max=1.03*total.back()+1;
     370    double yrange_max=1.03 * *std::max_element(total.begin(), total.end()) +1.0;
    371371    gp->yrange(yrange_max);
    372372
Note: See TracChangeset for help on using the changeset viewer.