#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Thu, 26 Jan 2017 14:03:53 +0100
changeset 21311 faf1ec6afec6
parent 21310 3f937bb2cdc8
child 21312 8d4de974a7fa
#REFACTORING by cg class: Rectangle changed: #encompassing: #merging:
Rectangle.st
--- 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
 !