Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1982 for trunk


Ignore:
Timestamp:
05/31/09 20:50:53 (15 years ago)
Author:
mstoeger
Message:

bugfix for inserting values into a datarow. it didn't update the auto-zoom. #498

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.Test/3.2/LineChartTests.cs

    r1981 r1982  
    214214
    215215      model.AddDataRow(row1);
     216
     217      f.ShowDialog();
     218    }
     219
     220    [Test]
     221    public void TestInsertValuesInDataRow() {
     222      LineChartTestForm f = new LineChartTestForm(model);
     223
     224      IDataRow row = new DataRow();
     225      row.AddValue(0);
     226      row.AddValue(5);
     227
     228      row.AddValue(10, 1);
     229      row.AddValue(10, 2);
     230
     231      model.AddDataRow(row);
    216232
    217233      f.ShowDialog();
  • trunk/sources/HeuristicLab.Visualization/3.2/DataRow.cs

    r1978 r1982  
    5656      //check if index is valid
    5757      if (index >= 0 && index < dataRow.Count) {
     58        UpdateMinMaxValue(value);
    5859        dataRow.Insert(index, value);
    5960        OnValueChanged(value, index, Action.Added);
Note: See TracChangeset for help on using the changeset viewer.