take care if sensor is nil
authortz
Fri, 20 Mar 1998 17:28:20 +0100
changeset 1472 ce2df8e79e2a
parent 1471 127914fa5b9c
child 1473 c738bb7d8c66
take care if sensor is nil
ListView.st
--- a/ListView.st	Thu Mar 12 19:29:05 1998 +0100
+++ b/ListView.st	Fri Mar 20 17:28:20 1998 +0100
@@ -3114,7 +3114,7 @@
         ^ self originChanged:(x @ y )
     ].
 
-    (self sensor hasExposeEventFor:self) ifTrue:[               "/ outstanding expose events
+    (self sensor notNil and: [self sensor hasExposeEventFor:self]) ifTrue:[               "/ outstanding expose events
         self invalidate.                                        "/ redraw all
         ^ self originChanged:(x @ y )
     ].
@@ -3653,5 +3653,5 @@
 !ListView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.159 1998-03-12 18:29:05 ca Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.160 1998-03-20 16:28:20 tz Exp $'
 ! !