class: SimpleView
authorca
Fri, 11 Jul 2014 08:00:14 +0200
changeset 6549 4832802aba27
parent 6548 d8a16b1f7c7e
child 6550 ab2d57d5b787
class: SimpleView changed: #invalidateDeviceRectangle:repairNow: no need to add damages with extent less or equal zero
SimpleView.st
--- a/SimpleView.st	Fri Jul 11 01:28:38 2014 +0200
+++ b/SimpleView.st	Fri Jul 11 08:00:14 2014 +0200
@@ -9889,14 +9889,17 @@
      The given rectangle is in device coordinate space."
 
     shown ifFalse:[
-	"/ no need to add damage - will get a full-redraw anyway,
-	"/ when I will be shown again.
-	^ self
-    ].
-
+        "/ no need to add damage - will get a full-redraw anyway,
+        "/ when I will be shown again.
+        ^ self
+    ].
+    (aRectangle width <= 0 or:[aRectangle height <= 0]) ifTrue:[
+        "/ no need to add damages with extent <= 0
+        ^ self
+    ].
     self sensor addDamage:aRectangle view:self.
     doRepairNow ifTrue:[
-	self repairDamage
+        self repairDamage
     ]
 
     "Modified: / 10.11.1998 / 01:55:03 / cg"
@@ -11239,11 +11242,11 @@
 !SimpleView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/SimpleView.st,v 1.758 2014-07-10 12:24:07 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/SimpleView.st,v 1.759 2014-07-11 06:00:14 ca Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/SimpleView.st,v 1.758 2014-07-10 12:24:07 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/SimpleView.st,v 1.759 2014-07-11 06:00:14 ca Exp $'
 !
 
 version_SVN