Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/12 18:06:26 (13 years ago)
Author:
gkronber
Message:

#1822 fixed cloning bug in ItemDictionary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs

    r7259 r7725  
    5454    protected ItemDictionary(ItemDictionary<TKey, TValue> original, Cloner cloner) {
    5555      cloner.RegisterClonedObject(original, this);
    56       foreach (TKey key in dict.Keys)
    57         dict.Add(cloner.Clone(key), cloner.Clone(dict[key]));
     56      foreach (TKey key in original.dict.Keys)
     57        dict.Add(cloner.Clone(key), cloner.Clone(original.dict[key]));
    5858    }
    5959    public ItemDictionary() : base() { }
Note: See TracChangeset for help on using the changeset viewer.