Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/14 11:44:17 (10 years ago)
Author:
rstoll
Message:
  • FilterResult was inversed at some point (true meaning it is filtered, not displayed respectively and thus not found and false means found)
  • Fixed that search applies a preview (data shall not be filtered, it only uses the FilterLogic)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataGridContentView.cs

    r10820 r10844  
    223223      for (int i = 0; i < Content.FilterLogic.PreprocessingData.Columns; i++) {
    224224        comparisonFilter.ConstraintColumn = i;
    225         bool[] filteredRows = Content.FilterLogic.Preview(filters, true);
    226         foundCells[i] = filteredRows.Select((value, index) => new { Index = index, Value = value })
    227           .Where(pair => pair.Value)
    228           .Select(pair => pair.Index)
    229           .ToList();
     225        bool[] filteredRows = Content.FilterLogic.GetFilterResult(filters, true);
     226        var foundIndices = new List<int>();
     227        for (int idx = 0; idx < filteredRows.Length; ++idx) {
     228          var notFilteredThusFound = !filteredRows[idx];
     229          if (notFilteredThusFound) {
     230            foundIndices.Add(idx);
     231          }
     232        }
     233        foundCells[i] = foundIndices;
    230234        IList<int> selectedList;
    231235        if (searchInSelection && HightlightedCellsBackground.TryGetValue(i, out selectedList)) {
Note: See TracChangeset for help on using the changeset viewer.