dont crash with nonexisting bitmaps
authorClaus Gittinger <cg@exept.de>
Mon, 15 Sep 1997 23:47:24 +0200
changeset 319 f16aa0e8541e
parent 318 31a94b71ae1b
child 320 5915a3370a59
dont crash with nonexisting bitmaps
UIHelpTool.st
UIPainter.st
--- a/UIHelpTool.st	Wed Sep 10 10:36:23 1997 +0200
+++ b/UIHelpTool.st	Mon Sep 15 23:47:24 1997 +0200
@@ -414,7 +414,7 @@
         |t|
         src nextPutLine:key storeString.
 
-        t := txt asString replaceAll:(Character cr) by:(Character space).
+        t := txt asString replaceAll:(Character cr) with:(Character space).
 
         (t endsWith:Character space) ifTrue:[
             t := t copyWithoutLast:1
--- a/UIPainter.st	Wed Sep 10 10:36:23 1997 +0200
+++ b/UIPainter.st	Mon Sep 15 23:47:24 1997 +0200
@@ -3033,10 +3033,12 @@
     self multipleSelectOk:true.
 
     cvsEventsDisabled := false.
-    imageMasterChild  := (self class imageMasterChild) onDevice:device.
-    imageMasterParent := (self class imageMasterParent) onDevice:device.
-    imageEmptyParent  := (self class imageEmptyParent)  onDevice:device.
-
+    imageMasterChild  := self class imageMasterChild. 
+    imageMasterChild notNil ifTrue:[imageMasterChild := imageMasterChild onDevice:device].
+    imageMasterParent := self class imageMasterParent. 
+    imageMasterParent notNil ifTrue:[imageMasterParent := imageMasterParent onDevice:device].
+    imageEmptyParent  := self class imageEmptyParent.  
+    imageEmptyParent notNil ifTrue:[imageEmptyParent := imageEmptyParent onDevice:device].
 ! !
 
 !UIPainter::TreeView methodsFor:'private'!