File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -340,13 +340,12 @@ extension Histogram: HasGraphLayout {
340
340
let c3 = backLeftBinHeight > frontRightBinHeight
341
341
let c4 = backRightBinHeight > frontLeftBinHeight
342
342
343
- if c1 || c3 && c4 { line. append ( Point ( x, backLeftBinHeight) ) }
344
- if !c3 { endLine ( ) }
345
- if c1 && !c4 { line. append ( Point ( x, frontLeftBinHeight) ) }
346
- if !c4 { endLine ( ) }
347
- if c2 && !c3 { line. append ( Point ( x, frontRightBinHeight) ) }
348
- if c2 || c3 && c4 { line. append ( Point ( x, backRightBinHeight) ) }
349
- if !c2 { endLine ( ) }
343
+ if c1 || c3 && c4 { line. append ( Point ( x, backLeftBinHeight) ) }
344
+ if c1 && !c4 { line. append ( Point ( x, frontLeftBinHeight) ) }
345
+ if c1 && ( !c3 || !c4) { endLine ( ) }
346
+ if c2 && !c3 { line. append ( Point ( x, frontRightBinHeight) ) }
347
+ if c2 || c3 && c4 { line. append ( Point ( x, backRightBinHeight) ) }
348
+ if !c2 && c3 && c4 { endLine ( ) }
350
349
351
350
backLeftBinHeight = backRightBinHeight
352
351
frontLeftBinHeight = frontRightBinHeight
You can’t perform that action at this time.
0 commit comments