Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8854


Ignore:
Timestamp:
10/30/12 09:01:05 (12 years ago)
Author:
sforsten
Message:

#1865:

  • fixed deserialization bug: allVariableNames was null after deserializing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableCondition.cs

    r8853 r8854  
    8686      set {
    8787        if (value == null) throw new ArgumentNullException();
    88         variableNames = new List<string>(value);
     88        variableNames.Clear();
     89        variableNames.AddRange(value);
    8990        OnChanged(EventArgs.Empty);
    9091      }
     
    171172
    172173    [StorableConstructor]
    173     private VariableCondition(bool deserializing) : base(deserializing) { }
     174    private VariableCondition(bool deserializing)
     175      : base(deserializing) {
     176      variableNames = new List<string>();
     177      allVariableNames = new List<string>();
     178    }
    174179    private VariableCondition(VariableCondition original, Cloner cloner)
    175180      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.