Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3181


Ignore:
Timestamp:
03/22/10 16:58:46 (15 years ago)
Author:
mkommend
Message:

corrected drawing of connectors in OperatorShapeInfo and removed self connections (ticket #867)

Location:
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/GraphVisualizationInfoView.cs

    r3171 r3181  
    311311      if (operatorShape != null)
    312312        shapeInfo.Collapsed = operatorShape.Collapsed;
    313      
     313
    314314      this.graphVisualization.Invalidate();
    315315      this.causedUpdateOfShapeInfo = false;
     
    330330          string connectorName = connectorFrom.Name;
    331331
    332           this.Content.AddConnection(shapeInfoFrom, connectorName, shapeInfoTo);
     332          if (shapeFrom != shapeTo) //avoid self references
     333            this.Content.AddConnection(shapeInfoFrom, connectorName, shapeInfoTo);
    333334        }
    334335      }
  • TabularUnified trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/OperatorShape.cs

    r3169 r3181  
    223223      if (titleSize.Height + 10 > Rectangle.Height) {
    224224        headerHeight =  (int)titleSize.Height + 10;
    225         mRectangle.Height = headerHeight;
     225        this.UpdateLabels();
    226226      }
    227227
Note: See TracChangeset for help on using the changeset viewer.