Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/30/17 10:31:27 (6 years ago)
Author:
pfleck
Message:

#2809:

  • Fixed wrong number of remaining/toral rows after filter changed
  • Improved performance for filtering as suggested by bburlacu. Thanks for the patch.
  • Start all charts with index zero.
File:
1 edited

Legend:

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

    r15466 r15489  
    7171      applyFilterButton.Enabled = activeFilters;
    7272
     73      Content.PreprocessingData.ResetFilter();
     74
    7375      int numTotal = Content.PreprocessingData.Rows;
    7476      int numRemaining = numTotal;
    7577
    76       Content.PreprocessingData.ResetFilter();
    7778      if (activeFilters) {
    7879        var remainingRows = Content.GetRemainingRows();
    79         Content.PreprocessingData.SetFilter(remainingRows);
    8080        numRemaining = remainingRows.Count(x => x);
     81
     82        if (numRemaining < numTotal) {
     83          Content.PreprocessingData.SetFilter(remainingRows);
     84        }
    8185      }
    8286
Note: See TracChangeset for help on using the changeset viewer.