--- a/Rectangle.st Thu Jan 26 13:56:08 2017 +0100
+++ b/Rectangle.st Thu Jan 26 14:03:53 2017 +0100
@@ -105,10 +105,10 @@
topLeft := bottomRight := nil.
listOfPoints do:[:p |
- topLeft == nil
- ifTrue: [topLeft := bottomRight := p]
- ifFalse: [topLeft := topLeft min: p.
- bottomRight := bottomRight max: p]
+ topLeft isNil
+ ifTrue: [topLeft := bottomRight := p]
+ ifFalse: [topLeft := topLeft min: p.
+ bottomRight := bottomRight max: p]
].
^ topLeft corner: bottomRight
@@ -186,13 +186,13 @@
topLeft := bottomRight := nil.
listOfRects do:[:r |
- topLeft == nil ifTrue: [
- topLeft := r topLeft.
- bottomRight := r bottomRight
- ] ifFalse: [
- topLeft := topLeft min: r topLeft.
- bottomRight := bottomRight max: r bottomRight
- ]
+ topLeft isNil ifTrue: [
+ topLeft := r topLeft.
+ bottomRight := r bottomRight
+ ] ifFalse: [
+ topLeft := topLeft min: r topLeft.
+ bottomRight := bottomRight max: r bottomRight
+ ]
].
^ topLeft corner: bottomRight
!