class: SimpleView
changed: #invalidateDeviceRectangle:repairNow:
no need to add damages with extent less or equal zero
--- 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