Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/30/10 10:47:40 (14 years ago)
Author:
mkommend
Message:

implemented review comments (ticket #867)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs

    r3422 r3570  
    182182      List<string> oldConnectorNames = operatorShape.AdditionalConnectorNames.ToList();
    183183      while (i < this.connectorNames.Count && j < oldConnectorNames.Count) {
    184         if (this.connectorNames[i] != oldConnectorNames[j]) {
     184        if (connectorNames[i] == OperatorShapeInfoFactory.SuccessorConnector ||
     185          connectorNames[i] == OperatorShapeInfoFactory.PredecessorConnector)
     186          i++;
     187        else if (oldConnectorNames[j] == OperatorShapeInfoFactory.SuccessorConnector ||
     188          oldConnectorNames[j] == OperatorShapeInfoFactory.PredecessorConnector)
     189          j++;
     190        else if (this.connectorNames[i] != oldConnectorNames[j]) {
    185191          operatorShape.RemoveConnector(oldConnectorNames[j]);
    186         } else
     192          j++;
     193        } else {
    187194          i++;
    188         j++;
     195          j++;
     196        }
    189197      }
    190198      //remove remaining old connectors
     
    195203      for (; i < this.connectorNames.Count; i++)
    196204        if (this.connectorNames[i] != OperatorShapeInfoFactory.SuccessorConnector && this.connectorNames[i] != OperatorShapeInfoFactory.PredecessorConnector)
    197         operatorShape.AddConnector(this.connectorNames[i]);
     205          operatorShape.AddConnector(this.connectorNames[i]);
    198206
    199207      operatorShape.UpdateLabels(this.labels);
Note: See TracChangeset for help on using the changeset viewer.