Free cookie consent management tool by TermsFeed Policy Generator

Changeset 883


Ignore:
Timestamp:
12/01/08 22:04:02 (16 years ago)
Author:
abeham
Message:

fixing bug in the clone method (ticket #412)

Location:
branches/3.1/sources/HeuristicLab.Communication.Data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/sources/HeuristicLab.Communication.Data/ProtocolState.cs

    r592 r883  
    111111        clone.stateTransitions = (ItemList<StateTransition>)Auxiliary.Clone(StateTransitions, clonedObjects);
    112112      else clone.StateTransitions = null;
    113       clone.protocol = Protocol;
     113      clone.Protocol = (Protocol)Auxiliary.Clone(Protocol, clonedObjects);
    114114      return clone;
    115115    }
  • branches/3.1/sources/HeuristicLab.Communication.Data/StateTransition.cs

    r592 r883  
    6969      StateTransition clone = new StateTransition();
    7070      clonedObjects.Add(Guid, clone);
    71       clone.sourceState = SourceState;
    72       clone.targetState = TargetState;
     71      clone.sourceState = (ProtocolState)Auxiliary.Clone(SourceState, clonedObjects);
     72      clone.targetState = (ProtocolState)Auxiliary.Clone(TargetState, clonedObjects);
    7373      clone.TransitionCondition = (ProgrammableOperator)Auxiliary.Clone(TransitionCondition, clonedObjects);
    7474      return clone;
Note: See TracChangeset for help on using the changeset viewer.