#BUGFIX by cg draft
authorClaus Gittinger <cg@exept.de>
Mon, 27 Feb 2017 02:05:41 +0100
changeset 3426 6d0987492205
parent 3425 0bf8a902d844
child 3427 4c2297e8a454
#BUGFIX by cg class: ImageEditor changed: #doSaveImageFileAs
ImageEditor.st
--- a/ImageEditor.st	Sun Feb 26 23:35:34 2017 +0100
+++ b/ImageEditor.st	Mon Feb 27 02:05:41 2017 +0100
@@ -8321,7 +8321,7 @@
     img notNil ifTrue: [
         file := img fileName
     ].
-
+    
     filters := FileSelectionBrowser saveImageFileNameFilters.
 
     (UserPreferences current useNativeFileDialog
@@ -8346,6 +8346,9 @@
     ] ifFalse:[ 
         img fileName isNil ifTrue:[
             LastDirectory notNil ifTrue:[
+                file isNil ifTrue:[
+                    file := 'image.png'.
+                ].
                 file := LastDirectory asFilename construct:(file asFilename baseName).
             ].    
         ].    
@@ -8382,7 +8385,7 @@
         self clearModifiedAndRememberImageSavedAsFile:file.
     ]
 
-    "Modified: / 26-02-2017 / 22:46:59 / cg"
+    "Modified: / 27-02-2017 / 01:26:05 / cg"
 !
 
 doSaveImageMaskFileAs