File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
GraphLayout/MSAGL/Routing Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,12 @@ public static IEnumerable<Shape> GetShapes(GeometryGraph graph)
34
34
}
35
35
36
36
private static void GetShapesOnDict ( Dictionary < Node , Shape > nodesToShapes , Cluster c ) {
37
- if ( c . IsCollapsed ) return ;
38
37
nodesToShapes . TryGetValue ( c , out Shape cShape ) ;
39
38
if ( cShape == null ) {
40
- cShape = nodesToShapes [ c ] = CreateShapeWithClusterBoundaryPort ( c ) ;
39
+ cShape = nodesToShapes [ c ] = CreateShapeWithClusterBoundaryPort ( c ) ;
41
40
}
41
+ if ( c . IsCollapsed ) return ;
42
+
42
43
foreach ( var n in c . Nodes ) {
43
44
nodesToShapes . TryGetValue ( n , out Shape nShape ) ;
44
45
if ( nShape == null ) {
Original file line number Diff line number Diff line change @@ -34,11 +34,7 @@ public class SplineRouter : AlgorithmBase {
34
34
Shape [ ] rootShapes ;
35
35
IEnumerable < EdgeGeometry > edgeGeometriesEnumeration {
36
36
get {
37
- if ( this . _edges != null ) {
38
- foreach ( var item in this . _edges . Select ( e => e . EdgeGeometry ) ) {
39
- yield return item ;
40
- }
41
- }
37
+ return this . _edges ? . Select ( e => e . EdgeGeometry ) ?? Enumerable . Empty < EdgeGeometry > ( ) ;
42
38
}
43
39
}
44
40
double coneAngle ;
You can’t perform that action at this time.
0 commit comments