- Timestamp:
- 03/15/12 17:51:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/DeleteColumnCommand.cs
r7267 r7625 48 48 base.Execute(); 49 49 this.oldSortedColumnIndices = new List<int>(ColumnGroup.SortedColumnIndexes); 50 if (!ColumnGroup.Columns.Any()) return; 51 50 52 ColumnBase column; 51 53 foreach (int columnIndex in AffectedColumns.Reverse()) { … … 62 64 public override void UndoExecute() { 63 65 base.UndoExecute(); 64 for (int i = 0; i < AffectedColumns.Length; i++)66 for (int i = 0; i < deletedColumns.Count; i++) 65 67 ColumnGroup.InsertColumn(AffectedColumns[i], deletedColumns[i]); 66 68
Note: See TracChangeset
for help on using the changeset viewer.