Changeset 15118 for stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/LayoutEngines
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15029,15040,15044
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views merged: 15029,15040,15044
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/LayoutEngines/ReingoldTilfordLayoutEngine.cs
r11120 r15118 40 40 SecondWalk(layoutRoot, -layoutRoot.Prelim); 41 41 NormalizeCoordinates(layoutNodeMap.Values); 42 if ( height != 0 && width !=0) {42 if (width > 0 && height > 0) { 43 43 FitToBounds(width, height, layoutNodeMap.Values); 44 44 Center(width, height, layoutNodeMap.Values); … … 158 158 if (ymax < y) ymax = y; 159 159 } 160 return new RectangleF(xmin, ymin, xmax + minHorizontalSpacing + NodeWidth, ymax + minVerticalSpacing+ NodeHeight);160 return new RectangleF(xmin, ymin, xmax + NodeWidth, ymax + NodeHeight); 161 161 } 162 162
Note: See TracChangeset
for help on using the changeset viewer.