Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/12 17:51:45 (13 years ago)
Author:
mkommend
Message:

#1734: merged changes in data importer from the heureka rep

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/DeleteColumnCommand.cs

    r7267 r7625  
    4848      base.Execute();
    4949      this.oldSortedColumnIndices = new List<int>(ColumnGroup.SortedColumnIndexes);
     50      if (!ColumnGroup.Columns.Any()) return;
     51
    5052      ColumnBase column;
    5153      foreach (int columnIndex in AffectedColumns.Reverse()) {
     
    6264    public override void UndoExecute() {
    6365      base.UndoExecute();
    64       for (int i = 0; i < AffectedColumns.Length; i++)
     66      for (int i = 0; i < deletedColumns.Count; i++)
    6567        ColumnGroup.InsertColumn(AffectedColumns[i], deletedColumns[i]);
    6668
Note: See TracChangeset for help on using the changeset viewer.