Changeset 3610
- Timestamp:
- 05/04/10 20:03:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Operators/3.3/DiscreteDoubleValueModifier.cs
r3376 r3610 97 97 int endIndex = EndIndexParameter.ActualValue.Value; 98 98 DoubleValue value = ValueParameter.ActualValue; 99 if (value == null) { 100 value = new DoubleValue(); 101 ValueParameter.ActualValue = value; 102 } 99 103 double newValue = value.Value; 100 104 if (index == startIndex) { … … 106 110 newValue = Modify(value.Value, start, end, index, startIndex, endIndex); 107 111 } 108 if (value == null) value = new DoubleValue(newValue); 109 else value.Value = newValue; 112 value.Value = newValue; 110 113 } 111 114 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.