if image is nil really clear view
authortz
Thu, 22 Jan 1998 15:28:16 +0100
changeset 450 845121b3901b
parent 449 dac8dc1f9dc8
child 451 a8da4f1924a4
if image is nil really clear view
ImageEditor.st
--- a/ImageEditor.st	Thu Jan 22 15:11:53 1998 +0100
+++ b/ImageEditor.st	Thu Jan 22 15:28:16 1998 +0100
@@ -1446,7 +1446,12 @@
 
 loadFromFile: aFileName
 
-    (aFileName notNil and: [(self imageEditView loadFromFile: aFileName) notNil])
+    aFileName notNil 
+    ifTrue:
+    [
+        self imageEditView loadFromFile: aFileName
+    ].
+    self image notNil
     ifTrue:
     [          
         self image colorMap notNil
@@ -1469,7 +1474,8 @@
 
 loadFromImage: image
 
-    (self imageEditView image: image) notNil
+    self imageEditView image: image.
+    self image notNil
     ifTrue:
     [    
         self image colorMap notNil
@@ -1508,7 +1514,8 @@
 
 loadFromMessage: aMessage
 
-    (self imageEditView loadFromMessage: aMessage) notNil
+    self imageEditView loadFromMessage: aMessage.
+    self image notNil
     ifTrue:
     [
         self listOfColors contents: self image usedColors asSet asOrderedCollection.