Changeset 9692 for trunk/sources
- Timestamp:
- 07/01/13 16:18:08 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Data/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/StringArray.cs
r9657 r9692 67 67 while (elementNames.Count > value) 68 68 elementNames.RemoveAt(elementNames.Count - 1); 69 while (elementNames.Count < value) 70 elementNames.Add("Element " + elementNames.Count); 69 if (elementNames.Any()) { 70 while (elementNames.Count < value) 71 elementNames.Add("Element " + elementNames.Count); 72 } 71 73 OnElementNamesChanged(); 72 74 OnReset(); -
trunk/sources/HeuristicLab.Data/3.3/ValueTypeArray.cs
r9657 r9692 69 69 while (elementNames.Count > value) 70 70 elementNames.RemoveAt(elementNames.Count - 1); 71 while (elementNames.Count < value) 72 elementNames.Add("Element " + elementNames.Count); 71 if (elementNames.Any()) { 72 while (elementNames.Count < value) 73 elementNames.Add("Element " + elementNames.Count); 74 } 73 75 OnElementNamesChanged(); 74 76 OnReset();
Note: See TracChangeset
for help on using the changeset viewer.