--- a/ImageEditor.st Fri Sep 28 17:19:17 2001 +0200
+++ b/ImageEditor.st Wed Oct 10 11:44:41 2001 +0200
@@ -1015,13 +1015,6 @@
#(#Menu
#(
#(#MenuItem
- #label: 'About'
- #translateLabel: true
- #activeHelpKey: #about
- #labelImage: #(#ResourceRetriever nil #menuIcon)
- #submenuChannel: #menuAbout
- )
- #(#MenuItem
#label: '&File'
#translateLabel: true
#activeHelpKey: #file
@@ -2266,10 +2259,15 @@
|depth img cMap newColorMap newImage oldCListSize newMode|
img := self image.
+ img isNil ifTrue:[
+ self warn:'No Image.'.
+ ^ self
+ ].
+
depth := img depth.
cMap := img colorMap.
cMap isNil ifTrue:[
- self warn:'Image has no colormap\change colorMap mode first.' withCRs.
+ self warn:'Image has no colormap.\Change colorMap mode first.' withCRs.
^ self
].