Changeset 1274


Ignore:
Timestamp:
Nov 3, 2010, 10:06:28 PM (11 years ago)
Author:
Jari Häkkinen
Message:

Addresses #485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9-stable/lib/Graph.cc

    r1267 r1274  
    126126      y0 = iter->second;
    127127    }
    128     staircase(x0, y0, y.size()-1, y0);
     128    svn_revnum_t xlast=y.size();
     129    if (y.size()>xticks_.size())
     130      xlast=xticks_.size();
     131    --xlast;
     132    staircase(x0, y0, xlast, y0);
    129133
    130134    legend_data legend;
Note: See TracChangeset for help on using the changeset viewer.