Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4774 for trunk


Ignore:
Timestamp:
11/11/10 23:35:51 (14 years ago)
Author:
swagner
Message:

Fixed exception when an empty data table is viewed with a StringConvertibleMatrixView (#1164)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/DataTable.cs

    r4763 r4774  
    144144
    145145    int IStringConvertibleMatrix.Rows {
    146       get { return rows.Max(r => r.Values.Count); }
     146      get { return rows.Count == 0 ? 0 : rows.Max(r => r.Values.Count); }
    147147      set { throw new NotSupportedException(); }
    148148    }
Note: See TracChangeset for help on using the changeset viewer.