Changeset 16692 for branches/2521_ProblemRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/LayoutEngines/ReingoldTilfordLayoutEngine.cs
- Timestamp:
- 03/18/19 17:24:30 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/LayoutEngines/ReingoldTilfordLayoutEngine.cs
r10565 r16692 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.