Changeset 3570
- Timestamp:
- 04/30/10 10:47:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs
r3422 r3570 182 182 List<string> oldConnectorNames = operatorShape.AdditionalConnectorNames.ToList(); 183 183 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]) { 185 191 operatorShape.RemoveConnector(oldConnectorNames[j]); 186 } else 192 j++; 193 } else { 187 194 i++; 188 j++; 195 j++; 196 } 189 197 } 190 198 //remove remaining old connectors … … 195 203 for (; i < this.connectorNames.Count; i++) 196 204 if (this.connectorNames[i] != OperatorShapeInfoFactory.SuccessorConnector && this.connectorNames[i] != OperatorShapeInfoFactory.PredecessorConnector) 197 operatorShape.AddConnector(this.connectorNames[i]);205 operatorShape.AddConnector(this.connectorNames[i]); 198 206 199 207 operatorShape.UpdateLabels(this.labels);
Note: See TracChangeset
for help on using the changeset viewer.