Changeset 10939 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/FilteredPreprocessingData.cs
- Timestamp:
- 06/04/14 13:09:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/FilteredPreprocessingData.cs
r10900 r10939 110 110 111 111 public void SetFilter(bool[] rowFilters) { 112 113 112 filteredData = (ITransactionalPreprocessingData)originalData.Clone(); 114 115 for (int row = (rowFilters.Length - 1); row >= 0; --row) { 116 if (rowFilters[row]) { 117 filteredData.DeleteRow(row); 113 filteredData.InTransaction(() => { 114 for (int row = (rowFilters.Length - 1); row >= 0; --row) { 115 if (rowFilters[row]) { 116 filteredData.DeleteRow(row); 117 } 118 118 } 119 } 120 119 }); 121 120 OnFilterChanged(); 122 121 }
Note: See TracChangeset
for help on using the changeset viewer.