bugfix redrawing handles selected
authorca
Wed, 21 Feb 2001 13:26:09 +0100
changeset 1450 a113274a03bf
parent 1449 49ad9f552d64
child 1451 f7c591a04f00
bugfix redrawing handles selected
UIPainterView.st
--- a/UIPainterView.st	Thu Feb 08 23:41:07 2001 +0100
+++ b/UIPainterView.st	Wed Feb 21 13:26:09 2001 +0100
@@ -1518,17 +1518,20 @@
             self clippedByChildren:(clipChildren := false). 
         ].
 
-        self handlesOf:aComponent do:[:rectangle :what|
-            what == #view ifTrue:[self displayRectangle:rectangle]
-                         ifFalse:[self fillRectangle:rectangle]
+        self handlesOf:aComponent do:[:aRectangle :what| |l t w h|
+            l := aRectangle left   + 1.
+            t := aRectangle top    + 1.
+            w := aRectangle width  - 2.
+            h := aRectangle height - 2.
+
+            what == #view ifTrue:[self displayRectangleX:l y:t width:w height:h]
+                         ifFalse:[self fillRectangleX:l y:t width:w height:h]
         ].
 
         wasClipped ifTrue:[
             self clippedByChildren:(clipChildren := true).
         ]
     ]
-
-
 ! !
 
 !UIPainterView methodsFor:'queries'!