Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/14 11:20:02 (10 years ago)
Author:
rstoll
Message:
  • Fixed StatisticsView bug if all rows are filtered
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/StatisticsView.cs

    r10817 r10971  
    7575    private void UpdateData() {
    7676      var logic = Content.StatisticsLogic;
    77       txtRows.Text = logic.GetRowCount().ToString();
     77      var rowCount = logic.GetRowCount();
     78      txtRows.Text = rowCount.ToString();
    7879      txtColumns.Text = logic.GetColumnCount().ToString();
    7980      txtNumericColumns.Text = logic.GetNumericColumnCount().ToString();
     
    101102      columns[9].HeaderCell.Value = "Num. diff. Values";
    102103
    103       for (int i = 0; i < logic.GetColumnCount(); ++i) {
    104         columnsRowsMatrix.Add(GetList(i));
     104      if (rowCount > 0) {
     105        for (int i = 0; i < logic.GetColumnCount(); ++i) {
     106          columnsRowsMatrix.Add(GetList(i));
     107        }
    105108      }
    106109
Note: See TracChangeset for help on using the changeset viewer.