#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Thu, 07 Jul 2016 13:58:26 +0200
changeset 7401 005c12498bd9
parent 7398 6d085e759693
child 7402 0ade34042e78
#REFACTORING by stefan class: SimpleView changed: #layout: (send #~= instead of #=, send #ifTrue: instead of #ifFalse:)
SimpleView.st
--- a/SimpleView.st	Thu Jun 30 18:29:49 2016 +0200
+++ b/SimpleView.st	Thu Jul 07 13:58:26 2016 +0200
@@ -2940,7 +2940,7 @@
 layout:aLayoutObject
     "set the layout object which controls my geometry."
 
-    layout = aLayoutObject ifFalse:[
+    layout ~= aLayoutObject ifTrue:[
         layout := aLayoutObject.
         self layoutChanged.
     ].
@@ -8323,24 +8323,24 @@
 
     margin isNil ifTrue:[margin := 0].
     (margin ~~ 0) ifTrue:[
-	m2 := margin + margin.
-	nX := nY := margin.
-	nW := width - m2.
-	nH := height - m2.
+        m2 := margin + margin.
+        nX := nY := margin.
+        nW := width - m2.
+        nH := height - m2.
 "/        transformation notNil ifTrue:[
 "/            nX := transformation applyInverseToX:nX.
 "/            nY := transformation applyInverseToY:nY.
 "/            nW := transformation applyInverseScaleX:nW.
 "/            nH := transformation applyInverseScaleY:nH.
 "/        ].
-	innerClipRect := Rectangle
-				 left:nX
-				 top:nY
-				 width:nW
-				 height:nH
+        innerClipRect := Rectangle
+                                 left:nX
+                                 top:nY
+                                 width:nW
+                                 height:nH
     ] ifFalse:[
-	"no clipping"
-	innerClipRect := nil
+        "no clipping"
+        innerClipRect := nil
     ]
 
     "Modified: / 22.5.1999 / 16:50:58 / cg"