ImageEditView.st
changeset 429 f98e6af57214
parent 426 2e3dfa527a07
child 430 574a94732ece
--- a/ImageEditView.st	Sat Jun 21 17:07:18 1997 +0200
+++ b/ImageEditView.st	Mon Jun 23 09:49:40 1997 +0200
@@ -396,13 +396,18 @@
 !
 
 performImageOperation:operation withArguments:args
-    |oldMag|
+    |oldMag newImage|
 
     windowGroup withCursor:Cursor wait do:[
         oldMag := magnification.
         magnifiedImage := nil.
         magnification := 1@1.
-        image := image perform:operation withArguments:args.
+        newImage := image perform:operation withArguments:args.
+        newImage isNil ifTrue:[
+            self information:'conversion failed - revert to original'.
+            ^ self
+        ].
+        image := newImage.
         self clear.
         (oldMag isNil or:[oldMag = magnification]) ifTrue:[
             self invalidate
@@ -411,7 +416,7 @@
         ]
     ]
 
-    "Modified: 4.6.1997 / 13:40:37 / cg"
+    "Modified: 23.6.1997 / 09:49:26 / cg"
 !
 
 rotateCCW
@@ -812,5 +817,5 @@
 !ImageEditView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.42 1997-06-20 11:19:07 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.43 1997-06-23 07:49:40 cg Exp $'
 ! !